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

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

Issue 2658133002: Convert BrowserPluginGuest to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698