| 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 // Loads the |url| provided. |force_navigation| indicates whether to reload |
| 289 // the content if the provided |url| matches the current page of the guest. |
| 288 void LoadURLWithParams(const GURL& url, | 290 void LoadURLWithParams(const GURL& url, |
| 289 const content::Referrer& referrer, | 291 const content::Referrer& referrer, |
| 290 ui::PageTransition transition_type, | 292 ui::PageTransition transition_type, |
| 291 content::WebContents* web_contents); | 293 bool force_navigation); |
| 292 | 294 |
| 293 void RequestNewWindowPermission( | 295 void RequestNewWindowPermission( |
| 294 WindowOpenDisposition disposition, | 296 WindowOpenDisposition disposition, |
| 295 const gfx::Rect& initial_bounds, | 297 const gfx::Rect& initial_bounds, |
| 296 bool user_gesture, | 298 bool user_gesture, |
| 297 content::WebContents* new_contents); | 299 content::WebContents* new_contents); |
| 298 | 300 |
| 299 // Requests resolution of a potentially relative URL. | 301 // Requests resolution of a potentially relative URL. |
| 300 GURL ResolveURL(const std::string& src); | 302 GURL ResolveURL(const std::string& src); |
| 301 | 303 |
| (...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 | 374 // This is used to ensure pending tasks will not fire after this object is |
| 373 // destroyed. | 375 // destroyed. |
| 374 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 376 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 375 | 377 |
| 376 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 378 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 377 }; | 379 }; |
| 378 | 380 |
| 379 } // namespace extensions | 381 } // namespace extensions |
| 380 | 382 |
| 381 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 383 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |