OLD | NEW |
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 Loading... |
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 BrowserPluginGuestManagerDelegate; | 62 class BrowserPluginGuestManager; |
63 class BrowserPluginHostFactory; | 63 class BrowserPluginHostFactory; |
64 class RenderWidgetHostView; | 64 class RenderWidgetHostView; |
65 class SiteInstance; | 65 class SiteInstance; |
66 class WebCursor; | 66 class WebCursor; |
67 struct DropData; | 67 struct DropData; |
68 struct MediaStreamRequest; | 68 struct MediaStreamRequest; |
69 | 69 |
70 // A browser plugin guest provides functionality for WebContents to operate in | 70 // A browser plugin guest provides functionality for WebContents to operate in |
71 // the guest role and implements guest-specific overrides for ViewHostMsg_* | 71 // the guest role and implements guest-specific overrides for ViewHostMsg_* |
72 // messages. | 72 // messages. |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Returns whether the mouse pointer was unlocked. | 143 // Returns whether the mouse pointer was unlocked. |
144 bool UnlockMouseIfNecessary(const NativeWebKeyboardEvent& event); | 144 bool UnlockMouseIfNecessary(const NativeWebKeyboardEvent& event); |
145 | 145 |
146 void UpdateVisibility(); | 146 void UpdateVisibility(); |
147 | 147 |
148 void CopyFromCompositingSurface( | 148 void CopyFromCompositingSurface( |
149 gfx::Rect src_subrect, | 149 gfx::Rect src_subrect, |
150 gfx::Size dst_size, | 150 gfx::Size dst_size, |
151 const base::Callback<void(bool, const SkBitmap&)>& callback); | 151 const base::Callback<void(bool, const SkBitmap&)>& callback); |
152 | 152 |
153 BrowserPluginGuestManagerDelegate* GetBrowserPluginGuestManager() const; | 153 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; |
154 | 154 |
155 // WebContentsObserver implementation. | 155 // WebContentsObserver implementation. |
156 virtual void DidCommitProvisionalLoadForFrame( | 156 virtual void DidCommitProvisionalLoadForFrame( |
157 int64 frame_id, | 157 int64 frame_id, |
158 const base::string16& frame_unique_name, | 158 const base::string16& frame_unique_name, |
159 bool is_main_frame, | 159 bool is_main_frame, |
160 const GURL& url, | 160 const GURL& url, |
161 PageTransition transition_type, | 161 PageTransition transition_type, |
162 RenderViewHost* render_view_host) OVERRIDE; | 162 RenderViewHost* render_view_host) OVERRIDE; |
163 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; | 163 virtual void DidStopLoading(RenderViewHost* render_view_host) OVERRIDE; |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 529 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
530 // permission. | 530 // permission. |
531 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 531 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
532 | 532 |
533 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 533 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
534 }; | 534 }; |
535 | 535 |
536 } // namespace content | 536 } // namespace content |
537 | 537 |
538 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 538 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |