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

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

Issue 269113002: Remove BrowserPluginGuestManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_createguest
Patch Set: 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 BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. Any 9 // BrowserPluginGuest lives on the UI thread of the browser process. Any
10 // messages about the guest render process that the embedder might be interested 10 // messages about the guest render process that the embedder might be interested
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 namespace blink { 52 namespace blink {
53 class WebInputEvent; 53 class WebInputEvent;
54 } 54 }
55 55
56 namespace gfx { 56 namespace gfx {
57 class Range; 57 class Range;
58 } 58 }
59 59
60 namespace content { 60 namespace content {
61 61
62 class BrowserPluginGuestManager; 62 class BrowserPluginGuestManager;
lazyboy 2014/05/05 21:40:54 Remove.
Fady Samuel 2014/05/07 17:32:59 Done.
63 class BrowserPluginGuestManagerDelegate;
63 class BrowserPluginHostFactory; 64 class BrowserPluginHostFactory;
64 class RenderWidgetHostView; 65 class RenderWidgetHostView;
65 class SiteInstance; 66 class SiteInstance;
66 class WebCursor; 67 class WebCursor;
67 struct DropData; 68 struct DropData;
68 struct MediaStreamRequest; 69 struct MediaStreamRequest;
69 70
70 // A browser plugin guest provides functionality for WebContents to operate in 71 // A browser plugin guest provides functionality for WebContents to operate in
71 // the guest role and implements guest-specific overrides for ViewHostMsg_* 72 // the guest role and implements guest-specific overrides for ViewHostMsg_*
72 // messages. 73 // messages.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Returns whether the mouse pointer was unlocked. 144 // Returns whether the mouse pointer was unlocked.
144 bool UnlockMouseIfNecessary(const NativeWebKeyboardEvent& event); 145 bool UnlockMouseIfNecessary(const NativeWebKeyboardEvent& event);
145 146
146 void UpdateVisibility(); 147 void UpdateVisibility();
147 148
148 void CopyFromCompositingSurface( 149 void CopyFromCompositingSurface(
149 gfx::Rect src_subrect, 150 gfx::Rect src_subrect,
150 gfx::Size dst_size, 151 gfx::Size dst_size,
151 const base::Callback<void(bool, const SkBitmap&)>& callback); 152 const base::Callback<void(bool, const SkBitmap&)>& callback);
152 153
153 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; 154 BrowserPluginGuestManagerDelegate* GetBrowserPluginGuestManager() const;
154 155
155 // WebContentsObserver implementation. 156 // WebContentsObserver implementation.
156 virtual void DidCommitProvisionalLoadForFrame( 157 virtual void DidCommitProvisionalLoadForFrame(
157 int64 frame_id, 158 int64 frame_id,
158 const base::string16& frame_unique_name, 159 const base::string16& frame_unique_name,
159 bool is_main_frame, 160 bool is_main_frame,
160 const GURL& url, 161 const GURL& url,
161 PageTransition transition_type, 162 PageTransition transition_type,
162 RenderViewHost* render_view_host) OVERRIDE; 163 RenderViewHost* render_view_host) OVERRIDE;
163 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; 164 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE;
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 // Weak pointer used to ask GeolocationPermissionContext about geolocation 530 // Weak pointer used to ask GeolocationPermissionContext about geolocation
530 // permission. 531 // permission.
531 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; 532 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_;
532 533
533 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 534 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
534 }; 535 };
535 536
536 } // namespace content 537 } // namespace content
537 538
538 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 539 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698