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 CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H_ | 6 #define CHROME_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/guest_view.h" | 10 #include "extensions/browser/guest_view/guest_view.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 virtual void DidStopLoading() OVERRIDE; | 34 virtual void DidStopLoading() OVERRIDE; |
35 virtual void GuestSizeChangedDueToAutoSize( | 35 virtual void GuestSizeChangedDueToAutoSize( |
36 const gfx::Size& old_size, | 36 const gfx::Size& old_size, |
37 const gfx::Size& new_size) OVERRIDE; | 37 const gfx::Size& new_size) OVERRIDE; |
38 virtual bool IsAutoSizeSupported() const OVERRIDE; | 38 virtual bool IsAutoSizeSupported() const OVERRIDE; |
39 | 39 |
40 // ExtensionFunctionDispatcher::Delegate implementation. | 40 // ExtensionFunctionDispatcher::Delegate implementation. |
41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 41 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
42 | 42 |
43 // content::WebContentsDelegate implementation. | 43 // content::WebContentsDelegate implementation. |
| 44 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
44 virtual bool ShouldCreateWebContents( | 45 virtual bool ShouldCreateWebContents( |
45 content::WebContents* web_contents, | 46 content::WebContents* web_contents, |
46 int route_id, | 47 int route_id, |
47 WindowContainerType window_container_type, | 48 WindowContainerType window_container_type, |
48 const base::string16& frame_name, | 49 const base::string16& frame_name, |
49 const GURL& target_url, | 50 const GURL& target_url, |
50 const std::string& partition_id, | 51 const std::string& partition_id, |
51 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE; | 52 content::SessionStorageNamespace* session_storage_namespace) OVERRIDE; |
52 | 53 |
53 // content::WebContentsObserver implementation. | 54 // content::WebContentsObserver implementation. |
54 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
55 | 56 |
56 private: | 57 private: |
57 ExtensionOptionsGuest(content::BrowserContext* browser_context, | 58 ExtensionOptionsGuest(content::BrowserContext* browser_context, |
58 int guest_instance_id); | 59 int guest_instance_id); |
59 virtual ~ExtensionOptionsGuest(); | 60 virtual ~ExtensionOptionsGuest(); |
60 void SetUpAutoSize(); | 61 void SetUpAutoSize(); |
61 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 62 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
62 | 63 |
63 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 64 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
64 extension_function_dispatcher_; | 65 extension_function_dispatcher_; |
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 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ | 71 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ |
OLD | NEW |