| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 void PushWebViewStateToIOThread(); | 315 void PushWebViewStateToIOThread(); |
| 316 static void RemoveWebViewStateFromIOThread( | 316 static void RemoveWebViewStateFromIOThread( |
| 317 content::WebContents* web_contents); | 317 content::WebContents* web_contents); |
| 318 | 318 |
| 319 // Loads the |url| provided. |force_navigation| indicates whether to reload | 319 // Loads the |url| provided. |force_navigation| indicates whether to reload |
| 320 // the content if the provided |url| matches the current page of the guest. | 320 // the content if the provided |url| matches the current page of the guest. |
| 321 void LoadURLWithParams(const GURL& url, | 321 void LoadURLWithParams(const GURL& url, |
| 322 const content::Referrer& referrer, | 322 const content::Referrer& referrer, |
| 323 ui::PageTransition transition_type, | 323 ui::PageTransition transition_type, |
| 324 bool force_navigation); | 324 bool force_navigation); |
| 325 content::WebContents* OpenURLFromTabForSitePerProcess( |
| 326 content::WebContents* source, const content::OpenURLParams& params); |
| 325 | 327 |
| 326 void RequestNewWindowPermission( | 328 void RequestNewWindowPermission( |
| 327 WindowOpenDisposition disposition, | 329 WindowOpenDisposition disposition, |
| 328 const gfx::Rect& initial_bounds, | 330 const gfx::Rect& initial_bounds, |
| 329 bool user_gesture, | 331 bool user_gesture, |
| 330 content::WebContents* new_contents); | 332 content::WebContents* new_contents); |
| 331 | 333 |
| 332 // Requests resolution of a potentially relative URL. | 334 // Requests resolution of a potentially relative URL. |
| 333 GURL ResolveURL(const std::string& src); | 335 GURL ResolveURL(const std::string& src); |
| 334 | 336 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 // This is used to ensure pending tasks will not fire after this object is | 406 // This is used to ensure pending tasks will not fire after this object is |
| 405 // destroyed. | 407 // destroyed. |
| 406 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 408 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 407 | 409 |
| 408 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 410 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 409 }; | 411 }; |
| 410 | 412 |
| 411 } // namespace extensions | 413 } // namespace extensions |
| 412 | 414 |
| 413 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 415 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |