blob: f2a67e0be5f4e76f2c58105e0490005db174f8ef [file] [log] [blame]
// Copyright (c) 2010 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_
#pragma once
#include "base/basictypes.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 bool 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_