| 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_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_
H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void OnPreferredSizeChanged(const gfx::Size& pref_size) final; | 37 void OnPreferredSizeChanged(const gfx::Size& pref_size) final; |
| 38 | 38 |
| 39 // content::WebContentsDelegate implementation. | 39 // content::WebContentsDelegate implementation. |
| 40 content::WebContents* OpenURLFromTab( | 40 content::WebContents* OpenURLFromTab( |
| 41 content::WebContents* source, | 41 content::WebContents* source, |
| 42 const content::OpenURLParams& params) final; | 42 const content::OpenURLParams& params) final; |
| 43 void CloseContents(content::WebContents* source) final; | 43 void CloseContents(content::WebContents* source) final; |
| 44 bool HandleContextMenu(const content::ContextMenuParams& params) final; | 44 bool HandleContextMenu(const content::ContextMenuParams& params) final; |
| 45 bool ShouldCreateWebContents( | 45 bool ShouldCreateWebContents( |
| 46 content::WebContents* web_contents, | 46 content::WebContents* web_contents, |
| 47 content::RenderFrameHost* opener, |
| 47 content::SiteInstance* source_site_instance, | 48 content::SiteInstance* source_site_instance, |
| 48 int32_t route_id, | 49 int32_t route_id, |
| 49 int32_t main_frame_route_id, | 50 int32_t main_frame_route_id, |
| 50 int32_t main_frame_widget_route_id, | 51 int32_t main_frame_widget_route_id, |
| 51 content::mojom::WindowContainerType window_container_type, | 52 content::mojom::WindowContainerType window_container_type, |
| 52 const GURL& opener_url, | 53 const GURL& opener_url, |
| 53 const std::string& frame_name, | 54 const std::string& frame_name, |
| 54 const GURL& target_url, | 55 const GURL& target_url, |
| 55 const std::string& partition_id, | 56 const std::string& partition_id, |
| 56 content::SessionStorageNamespace* session_storage_namespace) final; | 57 content::SessionStorageNamespace* session_storage_namespace) final; |
| 57 | 58 |
| 58 // content::WebContentsObserver implementation. | 59 // content::WebContentsObserver implementation. |
| 59 void DidFinishNavigation(content::NavigationHandle* navigation_handle) final; | 60 void DidFinishNavigation(content::NavigationHandle* navigation_handle) final; |
| 60 | 61 |
| 61 std::unique_ptr<extensions::ExtensionOptionsGuestDelegate> | 62 std::unique_ptr<extensions::ExtensionOptionsGuestDelegate> |
| 62 extension_options_guest_delegate_; | 63 extension_options_guest_delegate_; |
| 63 GURL options_page_; | 64 GURL options_page_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 66 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace extensions | 69 } // namespace extensions |
| 69 | 70 |
| 70 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ | 71 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ |
| OLD | NEW |