| 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 "extensions/browser/extension_function_dispatcher.h" | 10 #include "extensions/browser/extension_function_dispatcher.h" |
| 10 #include "extensions/browser/guest_view/extension_options/extension_options_gues
t_delegate.h" | 11 #include "extensions/browser/guest_view/extension_options/extension_options_gues
t_delegate.h" |
| 11 #include "extensions/browser/guest_view/guest_view.h" | |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 class BrowserContext; | 15 class BrowserContext; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 | 19 |
| 20 class ExtensionOptionsGuest | 20 class ExtensionOptionsGuest |
| 21 : public extensions::GuestView<ExtensionOptionsGuest>, | 21 : public guestview::GuestView<ExtensionOptionsGuest>, |
| 22 public extensions::ExtensionFunctionDispatcher::Delegate { | 22 public extensions::ExtensionFunctionDispatcher::Delegate { |
| 23 public: | 23 public: |
| 24 static const char Type[]; | 24 static const char Type[]; |
| 25 static extensions::GuestViewBase* Create( | 25 static guestview::GuestViewBase* Create( |
| 26 content::WebContents* owner_web_contents); | 26 content::WebContents* owner_web_contents); |
| 27 | 27 |
| 28 // GuestViewBase implementation. | 28 // GuestViewBase implementation. |
| 29 bool CanRunInDetachedState() const override; | 29 bool CanRunInDetachedState() const override; |
| 30 void CreateWebContents(const base::DictionaryValue& create_params, | 30 void CreateWebContents(const base::DictionaryValue& create_params, |
| 31 const WebContentsCreatedCallback& callback) override; | 31 const WebContentsCreatedCallback& callback) override; |
| 32 void DidInitialize(const base::DictionaryValue& create_params) override; | 32 void DidInitialize(const base::DictionaryValue& create_params) override; |
| 33 void GuestViewDidStopLoading() override; | 33 void GuestViewDidStopLoading() override; |
| 34 const char* GetAPINamespace() const override; | 34 const char* GetAPINamespace() const override; |
| 35 int GetTaskPrefix() const override; | 35 int GetTaskPrefix() const override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> | 72 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> |
| 73 extension_options_guest_delegate_; | 73 extension_options_guest_delegate_; |
| 74 GURL options_page_; | 74 GURL options_page_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 76 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace extensions | 79 } // namespace extensions |
| 80 | 80 |
| 81 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ | 81 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ |
| OLD | NEW |