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 "extensions/browser/extension_function_dispatcher.h" | 9 #include "extensions/browser/extension_function_dispatcher.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 14 matching lines...) Expand all Loading... |
25 static extensions::GuestViewBase* Create( | 25 static extensions::GuestViewBase* Create( |
26 content::BrowserContext* browser_context, | 26 content::BrowserContext* browser_context, |
27 int guest_instance_id); | 27 int guest_instance_id); |
28 | 28 |
29 // GuestViewBase implementation. | 29 // GuestViewBase implementation. |
30 virtual void CreateWebContents( | 30 virtual void CreateWebContents( |
31 const std::string& embedder_extension_id, | 31 const std::string& embedder_extension_id, |
32 int embedder_render_process_id, | 32 int embedder_render_process_id, |
33 const GURL& embedder_site_url, | 33 const GURL& embedder_site_url, |
34 const base::DictionaryValue& create_params, | 34 const base::DictionaryValue& create_params, |
35 const WebContentsCreatedCallback& callback) OVERRIDE; | 35 const WebContentsCreatedCallback& callback) override; |
36 virtual void DidAttachToEmbedder() OVERRIDE; | 36 virtual void DidAttachToEmbedder() override; |
37 virtual void DidInitialize() OVERRIDE; | 37 virtual void DidInitialize() override; |
38 virtual void DidStopLoading() OVERRIDE; | 38 virtual void DidStopLoading() override; |
39 virtual const char* GetAPINamespace() const OVERRIDE; | 39 virtual const char* GetAPINamespace() const override; |
40 virtual int GetTaskPrefix() const OVERRIDE; | 40 virtual int GetTaskPrefix() const override; |
41 virtual void GuestSizeChangedDueToAutoSize( | 41 virtual void GuestSizeChangedDueToAutoSize( |
42 const gfx::Size& old_size, | 42 const gfx::Size& old_size, |
43 const gfx::Size& new_size) OVERRIDE; | 43 const gfx::Size& new_size) override; |
44 virtual bool IsAutoSizeSupported() const OVERRIDE; | 44 virtual bool IsAutoSizeSupported() const override; |
45 | 45 |
46 // ExtensionFunctionDispatcher::Delegate implementation. | 46 // ExtensionFunctionDispatcher::Delegate implementation. |
47 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 47 virtual content::WebContents* GetAssociatedWebContents() const override; |
48 | 48 |
49 // content::WebContentsDelegate implementation. | 49 // content::WebContentsDelegate implementation. |
50 virtual content::WebContents* OpenURLFromTab( | 50 virtual content::WebContents* OpenURLFromTab( |
51 content::WebContents* source, | 51 content::WebContents* source, |
52 const content::OpenURLParams& params) OVERRIDE; | 52 const content::OpenURLParams& params) override; |
53 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 53 virtual void CloseContents(content::WebContents* source) override; |
54 virtual bool HandleContextMenu( | 54 virtual bool HandleContextMenu( |
55 const content::ContextMenuParams& params) OVERRIDE; | 55 const content::ContextMenuParams& params) override; |
56 virtual bool ShouldCreateWebContents( | 56 virtual bool ShouldCreateWebContents( |
57 content::WebContents* web_contents, | 57 content::WebContents* web_contents, |
58 int route_id, | 58 int route_id, |
59 WindowContainerType window_container_type, | 59 WindowContainerType window_container_type, |
60 const base::string16& frame_name, | 60 const base::string16& frame_name, |
61 const GURL& target_url, | 61 const GURL& target_url, |
62 const std::string& partition_id, | 62 const std::string& partition_id, |
63 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE; | 63 content::SessionStorageNamespace* session_storage_namespace) override; |
64 | 64 |
65 // content::WebContentsObserver implementation. | 65 // content::WebContentsObserver implementation. |
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 66 virtual bool OnMessageReceived(const IPC::Message& message) override; |
67 | 67 |
68 private: | 68 private: |
69 ExtensionOptionsGuest(content::BrowserContext* browser_context, | 69 ExtensionOptionsGuest(content::BrowserContext* browser_context, |
70 int guest_instance_id); | 70 int guest_instance_id); |
71 virtual ~ExtensionOptionsGuest(); | 71 virtual ~ExtensionOptionsGuest(); |
72 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 72 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
73 void SetUpAutoSize(); | 73 void SetUpAutoSize(); |
74 | 74 |
75 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 75 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
76 extension_function_dispatcher_; | 76 extension_function_dispatcher_; |
77 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> | 77 scoped_ptr<extensions::ExtensionOptionsGuestDelegate> |
78 extension_options_guest_delegate_; | 78 extension_options_guest_delegate_; |
79 GURL options_page_; | 79 GURL options_page_; |
80 bool has_navigated_; | 80 bool has_navigated_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 82 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace extensions | 85 } // namespace extensions |
86 | 86 |
87 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ | 87 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUE
ST_H_ |
OLD | NEW |