| Index: chrome/renderer/browser_plugin/chrome_browser_plugin_observer.h
|
| diff --git a/chrome/renderer/browser_plugin/chrome_browser_plugin_observer.h b/chrome/renderer/browser_plugin/chrome_browser_plugin_observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e44e7dfc51978cc68ff8a424a82e0a0a0c6ba3c9
|
| --- /dev/null
|
| +++ b/chrome/renderer/browser_plugin/chrome_browser_plugin_observer.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#ifndef CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_OBSERVER_H_
|
| +#define CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_OBSERVER_H_
|
| +
|
| +#include "content/public/renderer/browser_plugin/browser_plugin_observer.h"
|
| +
|
| +namespace base {
|
| +class ListValue;
|
| +} // namespace base
|
| +
|
| +class ChromeBrowserPluginObserver : public content::BrowserPluginObserver {
|
| + public:
|
| + ChromeBrowserPluginObserver(
|
| + content::BrowserPlugin* render_view);
|
| + virtual ~ChromeBrowserPluginObserver();
|
| +
|
| + int GetNextRequestID();
|
| +
|
| + // BrowserPluginObserver implementation.
|
| + virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
|
| +
|
| + private:
|
| + int next_request_id_;
|
| +
|
| + // Message handlers.
|
| + void OnExecuteScriptResponse(int instance_id,
|
| + int request_id,
|
| + const base::ListValue& result);
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginObserver);
|
| +};
|
| +
|
| +#endif // CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_OBSERVER_H_
|
| +
|
|
|