OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
| 6 #define CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
| 7 |
| 8 #include "content/public/renderer/browser_plugin/browser_plugin_observer.h" |
| 9 |
| 10 namespace base { |
| 11 class ListValue; |
| 12 } // namespace base |
| 13 |
| 14 class ChromeBrowserPluginObserver : public content::BrowserPluginObserver { |
| 15 public: |
| 16 ChromeBrowserPluginObserver( |
| 17 content::BrowserPlugin* render_view); |
| 18 virtual ~ChromeBrowserPluginObserver(); |
| 19 |
| 20 int GetNextRequestID(); |
| 21 |
| 22 // BrowserPluginObserver implementation. |
| 23 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 24 |
| 25 private: |
| 26 int next_request_id_; |
| 27 |
| 28 // Message handlers. |
| 29 void OnExecuteScriptResponse(int instance_id, |
| 30 int request_id, |
| 31 const base::ListValue& result); |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginObserver); |
| 34 }; |
| 35 |
| 36 #endif // CHROME_RENDERER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_OBSERVER_H_ |
| 37 |
OLD | NEW |