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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_embedder.h

Issue 261363002: Rename BrowserPluginGuestManagerDelegate to BrowserPluginGuestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_cleanupguestmanager
Patch Set: Fixed Android Build (Hopefully) Created 6 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's 5 // A BrowserPluginEmbedder handles messages coming from a BrowserPlugin's
6 // embedder that are not directed at any particular existing guest process. 6 // embedder that are not directed at any particular existing guest process.
7 // In the beginning, when a BrowserPlugin instance in the embedder renderer 7 // In the beginning, when a BrowserPlugin instance in the embedder renderer
8 // process requests an initial navigation, the WebContents for that renderer 8 // process requests an initial navigation, the WebContents for that renderer
9 // renderer creates a BrowserPluginEmbedder for itself. The 9 // renderer creates a BrowserPluginEmbedder for itself. The
10 // BrowserPluginEmbedder, in turn, forwards the requests to a 10 // BrowserPluginEmbedder, in turn, forwards the requests to a
(...skipping 14 matching lines...) Expand all
25 struct BrowserPluginHostMsg_Attach_Params; 25 struct BrowserPluginHostMsg_Attach_Params;
26 struct BrowserPluginHostMsg_ResizeGuest_Params; 26 struct BrowserPluginHostMsg_ResizeGuest_Params;
27 27
28 namespace gfx { 28 namespace gfx {
29 class Point; 29 class Point;
30 } 30 }
31 31
32 namespace content { 32 namespace content {
33 33
34 class BrowserPluginGuest; 34 class BrowserPluginGuest;
35 class BrowserPluginGuestManagerDelegate; 35 class BrowserPluginGuestManager;
36 class BrowserPluginHostFactory; 36 class BrowserPluginHostFactory;
37 class RenderWidgetHostImpl; 37 class RenderWidgetHostImpl;
38 class WebContentsImpl; 38 class WebContentsImpl;
39 struct NativeWebKeyboardEvent; 39 struct NativeWebKeyboardEvent;
40 40
41 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver { 41 class CONTENT_EXPORT BrowserPluginEmbedder : public WebContentsObserver {
42 public: 42 public:
43 virtual ~BrowserPluginEmbedder(); 43 virtual ~BrowserPluginEmbedder();
44 44
45 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents); 45 static BrowserPluginEmbedder* Create(WebContentsImpl* web_contents);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Sends EndSystemDrag message to the guest that initiated the last drag/drop 82 // Sends EndSystemDrag message to the guest that initiated the last drag/drop
83 // operation, if there's any. 83 // operation, if there's any.
84 void SystemDragEnded(); 84 void SystemDragEnded();
85 85
86 private: 86 private:
87 friend class TestBrowserPluginEmbedder; 87 friend class TestBrowserPluginEmbedder;
88 88
89 explicit BrowserPluginEmbedder(WebContentsImpl* web_contents); 89 explicit BrowserPluginEmbedder(WebContentsImpl* web_contents);
90 90
91 BrowserPluginGuestManagerDelegate* GetBrowserPluginGuestManager() const; 91 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const;
92 92
93 bool DidSendScreenRectsCallback(WebContents* guest_web_contents); 93 bool DidSendScreenRectsCallback(WebContents* guest_web_contents);
94 94
95 bool SetZoomLevelCallback(double level, WebContents* guest_web_contents); 95 bool SetZoomLevelCallback(double level, WebContents* guest_web_contents);
96 96
97 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event, 97 bool UnlockMouseIfNecessaryCallback(const NativeWebKeyboardEvent& event,
98 WebContents* guest); 98 WebContents* guest);
99 99
100 // Called by the content embedder when a guest exists with the provided 100 // Called by the content embedder when a guest exists with the provided
101 // |instance_id|. 101 // |instance_id|.
(...skipping 27 matching lines...) Expand all
129 base::WeakPtr<BrowserPluginGuest> guest_started_drag_; 129 base::WeakPtr<BrowserPluginGuest> guest_started_drag_;
130 130
131 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_; 131 base::WeakPtrFactory<BrowserPluginEmbedder> weak_ptr_factory_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder); 133 DISALLOW_COPY_AND_ASSIGN(BrowserPluginEmbedder);
134 }; 134 };
135 135
136 } // namespace content 136 } // namespace content
137 137
138 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_ 138 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_EMBEDDER_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698