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

Unified Diff: chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.h

Issue 12326168: Move <webview> API to chrome layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with ToT Created 7 years, 10 months 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
« no previous file with comments | « no previous file | chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.h
diff --git a/chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.h b/chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..62a3d5a435fd321e70c619ac9cdfb66200fbc29b
--- /dev/null
+++ b/chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.h
@@ -0,0 +1,45 @@
+// 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_BROWSER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_GUEST_OBSERVER_H_
+#define CHROME_BROWSER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_GUEST_OBSERVER_H_
+
+#include "content/public/browser/browser_plugin/browser_plugin_guest_observer.h"
+
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace base {
+class ListValue;
+} // namespace base
+
+namespace extensions {
+class Extension;
+} // namespace extensions
+
+class ChromeBrowserPluginGuestObserver
+ : public content::BrowserPluginGuestObserver,
+ public base::RefCounted<ChromeBrowserPluginGuestObserver> {
+ public:
+ explicit ChromeBrowserPluginGuestObserver(content::BrowserPluginGuest* guest);
+
+ virtual bool OnMessageReceivedFromEmbedder(
+ const IPC::Message& message) OVERRIDE;
+
+ private:
+ friend class base::RefCounted<ChromeBrowserPluginGuestObserver>;
+
+ virtual ~ChromeBrowserPluginGuestObserver();
+
+ virtual void OnDestruct() OVERRIDE;
+
+ // Message handlers.
+ // If possible, navigate the guest to |relative_index| entries away from the
+ // current navigation entry.
+ void OnGo(int relative_index);
+
+ DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginGuestObserver);
+};
+
+#endif // CHROME_BROWSER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_GUEST_OBSERVER_H_
« no previous file with comments | « no previous file | chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698