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

Side by Side 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, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browser_plugin/chrome_browser_plugin_guest_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_BROWSER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_GUEST_OBSERVER_H_
6 #define CHROME_BROWSER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_GUEST_OBSERVER_H_
7
8 #include "content/public/browser/browser_plugin/browser_plugin_guest_observer.h"
9
10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h"
12
13 namespace base {
14 class ListValue;
15 } // namespace base
16
17 namespace extensions {
18 class Extension;
19 } // namespace extensions
20
21 class ChromeBrowserPluginGuestObserver
22 : public content::BrowserPluginGuestObserver,
23 public base::RefCounted<ChromeBrowserPluginGuestObserver> {
24 public:
25 explicit ChromeBrowserPluginGuestObserver(content::BrowserPluginGuest* guest);
26
27 virtual bool OnMessageReceivedFromEmbedder(
28 const IPC::Message& message) OVERRIDE;
29
30 private:
31 friend class base::RefCounted<ChromeBrowserPluginGuestObserver>;
32
33 virtual ~ChromeBrowserPluginGuestObserver();
34
35 virtual void OnDestruct() OVERRIDE;
36
37 // Message handlers.
38 // If possible, navigate the guest to |relative_index| entries away from the
39 // current navigation entry.
40 void OnGo(int relative_index);
41
42 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserPluginGuestObserver);
43 };
44
45 #endif // CHROME_BROWSER_BROWSER_PLUGIN_CHROME_BROWSER_PLUGIN_GUEST_OBSERVER_H_
OLDNEW
« 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