| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/guest_view/browser/guest_view.h" | 9 #include "components/guest_view/browser/guest_view.h" |
| 10 #include "extensions/browser/guest_view/extension_options/extension_options_gues
t_delegate.h" | 10 #include "extensions/browser/guest_view/extension_options/extension_options_gues
t_delegate.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 bool ShouldHandleFindRequestsForEmbedder() const override; | 36 bool ShouldHandleFindRequestsForEmbedder() const override; |
| 37 | 37 |
| 38 // content::WebContentsDelegate implementation. | 38 // content::WebContentsDelegate implementation. |
| 39 content::WebContents* OpenURLFromTab( | 39 content::WebContents* OpenURLFromTab( |
| 40 content::WebContents* source, | 40 content::WebContents* source, |
| 41 const content::OpenURLParams& params) override; | 41 const content::OpenURLParams& params) override; |
| 42 void CloseContents(content::WebContents* source) override; | 42 void CloseContents(content::WebContents* source) override; |
| 43 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 43 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
| 44 bool ShouldCreateWebContents( | 44 bool ShouldCreateWebContents( |
| 45 content::WebContents* web_contents, | 45 content::WebContents* web_contents, |
| 46 int route_id, | 46 int32 route_id, |
| 47 int main_frame_route_id, | 47 int32 main_frame_route_id, |
| 48 int32 main_frame_widget_route_id, |
| 49 int32 surface_id, |
| 48 WindowContainerType window_container_type, | 50 WindowContainerType window_container_type, |
| 49 const std::string& frame_name, | 51 const std::string& frame_name, |
| 50 const GURL& target_url, | 52 const GURL& target_url, |
| 51 const std::string& partition_id, | 53 const std::string& partition_id, |
| 52 content::SessionStorageNamespace* session_storage_namespace) override; | 54 content::SessionStorageNamespace* session_storage_namespace) override; |
| 53 | 55 |
| 54 // content::WebContentsObserver implementation. | 56 // content::WebContentsObserver implementation. |
| 55 void DidNavigateMainFrame( | 57 void DidNavigateMainFrame( |
| 56 const content::LoadCommittedDetails& details, | 58 const content::LoadCommittedDetails& details, |
| 57 const content::FrameNavigateParams& params) override; | 59 const content::FrameNavigateParams& params) override; |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 explicit ExtensionOptionsGuest(content::WebContents* owner_web_contents); | 62 explicit ExtensionOptionsGuest(content::WebContents* owner_web_contents); |
| 61 ~ExtensionOptionsGuest() override; | 63 ~ExtensionOptionsGuest() override; |
| 62 | 64 |
| 63 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> | 65 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> |
| 64 extension_options_guest_delegate_; | 66 extension_options_guest_delegate_; |
| 65 GURL options_page_; | 67 GURL options_page_; |
| 66 | 68 |
| 67 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 69 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace extensions | 72 } // namespace extensions |
| 71 | 73 |
| 72 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ | 74 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ |
| OLD | NEW |