| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 bool focused() const { return focused_; } | 161 bool focused() const { return focused_; } |
| 162 bool visible() const { return guest_visible_; } | 162 bool visible() const { return guest_visible_; } |
| 163 bool is_in_destruction() { return is_in_destruction_; } | 163 bool is_in_destruction() { return is_in_destruction_; } |
| 164 | 164 |
| 165 void UpdateVisibility(); | 165 void UpdateVisibility(); |
| 166 | 166 |
| 167 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; | 167 BrowserPluginGuestManager* GetBrowserPluginGuestManager() const; |
| 168 | 168 |
| 169 // WebContentsObserver implementation. | 169 // WebContentsObserver implementation. |
| 170 void DidCommitProvisionalLoadForFrame( | 170 void DidFinishNavigation(NavigationHandle* navigation_handle) override; |
| 171 RenderFrameHost* render_frame_host, | |
| 172 const GURL& url, | |
| 173 ui::PageTransition transition_type) override; | |
| 174 | 171 |
| 175 void RenderViewReady() override; | 172 void RenderViewReady() override; |
| 176 void RenderProcessGone(base::TerminationStatus status) override; | 173 void RenderProcessGone(base::TerminationStatus status) override; |
| 177 bool OnMessageReceived(const IPC::Message& message) override; | 174 bool OnMessageReceived(const IPC::Message& message) override; |
| 178 bool OnMessageReceived(const IPC::Message& message, | 175 bool OnMessageReceived(const IPC::Message& message, |
| 179 RenderFrameHost* render_frame_host) override; | 176 RenderFrameHost* render_frame_host) override; |
| 180 | 177 |
| 181 // GuestHost implementation. | 178 // GuestHost implementation. |
| 182 int LoadURLWithParams( | 179 int LoadURLWithParams( |
| 183 const NavigationController::LoadURLParams& load_params) override; | 180 const NavigationController::LoadURLParams& load_params) override; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // Weak pointer used to ask GeolocationPermissionContext about geolocation | 461 // Weak pointer used to ask GeolocationPermissionContext about geolocation |
| 465 // permission. | 462 // permission. |
| 466 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; | 463 base::WeakPtrFactory<BrowserPluginGuest> weak_ptr_factory_; |
| 467 | 464 |
| 468 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); | 465 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); |
| 469 }; | 466 }; |
| 470 | 467 |
| 471 } // namespace content | 468 } // namespace content |
| 472 | 469 |
| 473 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ | 470 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ |
| OLD | NEW |