Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

chrome_frame_automation_provider.h

// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This implements a browser-side endpoint for ChromeFrame UI automation
// activity. The client-side endpoint is implemented by
// ChromeFrameAutomationClient.
// The entire lifetime of this object should be contained within that of
// the BrowserProcess

#ifndef CHROME_BROWSER_AUTOMATION_CHROME_FRAME_AUTOMATION_PROVIDER_H_
#define CHROME_BROWSER_AUTOMATION_CHROME_FRAME_AUTOMATION_PROVIDER_H_

#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/automation/automation_provider.h"

class Profile;

// This class services automation IPC requests coming in from ChromeFrame
// instances.
class ChromeFrameAutomationProvider : public AutomationProvider {
 public:
  explicit ChromeFrameAutomationProvider(Profile* profile);

  // IPC::Channel::Listener overrides.
  virtual void OnMessageReceived(const IPC::Message& message);

 protected:
  // This function is called when we receive an invalid message type.
  virtual void OnUnhandledMessage(const IPC::Message& message);

  // Returns true if the message received is a valid chrome frame message.
  bool IsValidMessage(uint32 type);

 private:
  DISALLOW_COPY_AND_ASSIGN(ChromeFrameAutomationProvider);
};

#endif  // CHROME_BROWSER_AUTOMATION_CHROME_FRAME_AUTOMATION_PROVIDER_H_


Generated by  Doxygen 1.6.0   Back to index