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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 const content::Referrer& referrer, | 292 const content::Referrer& referrer, |
293 ui::PageTransition transition_type, | 293 ui::PageTransition transition_type, |
294 bool force_navigation); | 294 bool force_navigation); |
295 | 295 |
296 void RequestNewWindowPermission( | 296 void RequestNewWindowPermission( |
297 WindowOpenDisposition disposition, | 297 WindowOpenDisposition disposition, |
298 const gfx::Rect& initial_bounds, | 298 const gfx::Rect& initial_bounds, |
299 bool user_gesture, | 299 bool user_gesture, |
300 content::WebContents* new_contents); | 300 content::WebContents* new_contents); |
301 | 301 |
302 // Requests resolution of a potentially relative URL. | |
303 GURL ResolveURL(const std::string& src); | |
304 | |
305 // Notification that a load in the guest resulted in abort. Note that |url| | 302 // Notification that a load in the guest resulted in abort. Note that |url| |
306 // may be invalid. | 303 // may be invalid. |
307 void LoadAbort(bool is_top_level, | 304 void LoadAbort(bool is_top_level, |
308 const GURL& url, | 305 const GURL& url, |
309 const std::string& error_type); | 306 const std::string& error_type); |
310 | 307 |
311 void OnFrameNameChanged(bool is_top_level, const std::string& name); | 308 void OnFrameNameChanged(bool is_top_level, const std::string& name); |
312 | 309 |
313 // Creates a new guest window owned by this WebViewGuest. | 310 // Creates a new guest window owned by this WebViewGuest. |
314 void CreateNewGuestWebViewWindow(const content::OpenURLParams& params); | 311 void CreateNewGuestWebViewWindow(const content::OpenURLParams& params); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // 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 |
376 // destroyed. | 373 // destroyed. |
377 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 374 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
378 | 375 |
379 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 376 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
380 }; | 377 }; |
381 | 378 |
382 } // namespace extensions | 379 } // namespace extensions |
383 | 380 |
384 #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 |