Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 278 | 278 |
| 279 // Called when a redirect notification occurs. | 279 // Called when a redirect notification occurs. |
| 280 void LoadRedirect(const GURL& old_url, | 280 void LoadRedirect(const GURL& old_url, |
| 281 const GURL& new_url, | 281 const GURL& new_url, |
| 282 bool is_top_level); | 282 bool is_top_level); |
| 283 | 283 |
| 284 void PushWebViewStateToIOThread(); | 284 void PushWebViewStateToIOThread(); |
| 285 static void RemoveWebViewStateFromIOThread( | 285 static void RemoveWebViewStateFromIOThread( |
| 286 content::WebContents* web_contents); | 286 content::WebContents* web_contents); |
| 287 | 287 |
| 288 void LoadURLWithParams(const GURL& url, | 288 void LoadURLWithParams(const GURL& url, |
|
Charlie Reis
2015/02/19 22:56:28
nit: Let's document what force_navigation means, s
Fady Samuel
2015/02/20 00:33:06
Done.
| |
| 289 const content::Referrer& referrer, | 289 const content::Referrer& referrer, |
| 290 ui::PageTransition transition_type, | 290 ui::PageTransition transition_type, |
| 291 content::WebContents* web_contents); | 291 bool force_navigation); |
| 292 | 292 |
| 293 void RequestNewWindowPermission( | 293 void RequestNewWindowPermission( |
| 294 WindowOpenDisposition disposition, | 294 WindowOpenDisposition disposition, |
| 295 const gfx::Rect& initial_bounds, | 295 const gfx::Rect& initial_bounds, |
| 296 bool user_gesture, | 296 bool user_gesture, |
| 297 content::WebContents* new_contents); | 297 content::WebContents* new_contents); |
| 298 | 298 |
| 299 // Requests resolution of a potentially relative URL. | 299 // Requests resolution of a potentially relative URL. |
| 300 GURL ResolveURL(const std::string& src); | 300 GURL ResolveURL(const std::string& src); |
| 301 | 301 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 372 // This is used to ensure pending tasks will not fire after this object is | 372 // This is used to ensure pending tasks will not fire after this object is |
| 373 // destroyed. | 373 // destroyed. |
| 374 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 374 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 375 | 375 |
| 376 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 376 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 377 }; | 377 }; |
| 378 | 378 |
| 379 } // namespace extensions | 379 } // namespace extensions |
| 380 | 380 |
| 381 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 381 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |