| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 gfx::Rect src_subrect, | 147 gfx::Rect src_subrect, |
| 148 gfx::Size dst_size, | 148 gfx::Size dst_size, |
| 149 const base::Callback<void(bool, const SkBitmap&)>& callback); | 149 const base::Callback<void(bool, const SkBitmap&)>& callback); |
| 150 | 150 |
| 151 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; | 151 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; |
| 152 | 152 |
| 153 // WebContentsObserver implementation. | 153 // WebContentsObserver implementation. |
| 154 virtual void DidCommitProvisionalLoadForFrame( | 154 virtual void DidCommitProvisionalLoadForFrame( |
| 155 RenderFrameHost* render_frame_host, | 155 RenderFrameHost* render_frame_host, |
| 156 const GURL& url, | 156 const GURL& url, |
| 157 bool url_is_unreachable, |
| 157 ui::PageTransition transition_type) OVERRIDE; | 158 ui::PageTransition transition_type) OVERRIDE; |
| 158 | 159 |
| 159 virtual void RenderViewReady() OVERRIDE; | 160 virtual void RenderViewReady() OVERRIDE; |
| 160 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; | 161 virtual void RenderProcessGone(base::TerminationStatus status) OVERRIDE; |
| 161 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 162 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 162 virtual bool OnMessageReceived(const IPC::Message& message, | 163 virtual bool OnMessageReceived(const IPC::Message& message, |
| 163 RenderFrameHost* render_frame_host) OVERRIDE; | 164 RenderFrameHost* render_frame_host) OVERRIDE; |
| 164 | 165 |
| 165 // Exposes the protected web_contents() from WebContentsObserver. | 166 // Exposes the protected web_contents() from WebContentsObserver. |
| 166 WebContentsImpl* GetWebContents() const; | 167 WebContentsImpl* GetWebContents() const; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 375 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 375 // permission. | 376 // permission. |
| 376 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 377 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 377 | 378 |
| 378 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 379 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 379 }; | 380 }; |
| 380 | 381 |
| 381 } // namespace content | 382 } // namespace content |
| 382 | 383 |
| 383 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 384 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |