Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5508)

Unified Diff: chrome/renderer/browser_plugin/chrome_browser_plugin_observer.h

Issue 11693009: Browser Plugin: Implement ExecuteScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
+
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/renderer/browser_plugin/chrome_browser_plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698