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