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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 gfx::Rect src_subrect, | 143 gfx::Rect src_subrect, |
144 gfx::Size dst_size, | 144 gfx::Size dst_size, |
145 const base::Callback<void(bool, const SkBitmap&)>& callback); | 145 const base::Callback<void(bool, const SkBitmap&)>& callback); |
146 | 146 |
147 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; | 147 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; |
148 | 148 |
149 // WebContentsObserver implementation. | 149 // WebContentsObserver implementation. |
150 virtual void DidCommitProvisionalLoadForFrame( | 150 virtual void DidCommitProvisionalLoadForFrame( |
151 RenderFrameHost* render_frame_host, | 151 RenderFrameHost* render_frame_host, |
152 const GURL& url, | 152 const GURL& url, |
153 ui::PageTransition transition_type) OVERRIDE; | 153 ui::PageTransition transition_type) override; |
154 | 154 |
155 virtual void RenderViewReady() OVERRIDE; | 155 virtual void RenderViewReady() override; |
156 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 156 virtual void RenderProcessGone(base::TerminationStatus status) override; |
157 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 157 virtual bool OnMessageReceived(const IPC::Message& message) override; |
158 virtual bool OnMessageReceived(const IPC::Message& message, | 158 virtual bool OnMessageReceived(const IPC::Message& message, |
159 RenderFrameHost* render_frame_host) OVERRIDE; | 159 RenderFrameHost* render_frame_host) override; |
160 | 160 |
161 // Exposes the protected web_contents() from WebContentsObserver. | 161 // Exposes the protected web_contents() from WebContentsObserver. |
162 WebContentsImpl* GetWebContents() const; | 162 WebContentsImpl* GetWebContents() const; |
163 | 163 |
164 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const; | 164 gfx::Point GetScreenCoordinates(const gfx::Point& relative_position) const; |
165 | 165 |
166 // Helper to send messages to embedder. This methods fills the message with | 166 // Helper to send messages to embedder. This methods fills the message with |
167 // the correct routing id. | 167 // the correct routing id. |
168 void SendMessageToEmbedder(IPC::Message* msg); | 168 void SendMessageToEmbedder(IPC::Message* msg); |
169 | 169 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 373 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
374 // permission. | 374 // permission. |
375 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 375 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
376 | 376 |
377 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 377 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
378 }; | 378 }; |
379 | 379 |
380 } // namespace content | 380 } // namespace content |
381 | 381 |
382 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 382 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
OLD | NEW |