| 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, |
| 48 WindowContainerType window_container_type, | 49 WindowContainerType window_container_type, |
| 49 const std::string& frame_name, | 50 const std::string& frame_name, |
| 50 const GURL& target_url, | 51 const GURL& target_url, |
| 51 const std::string& partition_id, | 52 const std::string& partition_id, |
| 52 content::SessionStorageNamespace* session_storage_namespace) override; | 53 content::SessionStorageNamespace* session_storage_namespace) override; |
| 53 | 54 |
| 54 // content::WebContentsObserver implementation. | 55 // content::WebContentsObserver implementation. |
| 55 void DidNavigateMainFrame( | 56 void DidNavigateMainFrame( |
| 56 const content::LoadCommittedDetails& details, | 57 const content::LoadCommittedDetails& details, |
| 57 const content::FrameNavigateParams& params) override; | 58 const content::FrameNavigateParams& params) override; |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 explicit ExtensionOptionsGuest(content::WebContents* owner_web_contents); | 61 explicit ExtensionOptionsGuest(content::WebContents* owner_web_contents); |
| 61 ~ExtensionOptionsGuest() override; | 62 ~ExtensionOptionsGuest() override; |
| 62 | 63 |
| 63 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> | 64 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> |
| 64 extension_options_guest_delegate_; | 65 extension_options_guest_delegate_; |
| 65 GURL options_page_; | 66 GURL options_page_; |
| 66 | 67 |
| 67 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 68 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 } // namespace extensions | 71 } // namespace extensions |
| 71 | 72 |
| 72 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ | 73 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ |
| OLD | NEW |