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 22 matching lines...) Expand all Loading... |
33 virtual void DidInitialize() OVERRIDE; | 33 virtual void DidInitialize() OVERRIDE; |
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. |
| 44 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 45 |
43 // content::WebContentsObserver implementation. | 46 // content::WebContentsObserver implementation. |
44 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 47 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
45 | 48 |
46 private: | 49 private: |
47 ExtensionOptionsGuest(content::BrowserContext* browser_context, | 50 ExtensionOptionsGuest(content::BrowserContext* browser_context, |
48 int guest_instance_id); | 51 int guest_instance_id); |
49 virtual ~ExtensionOptionsGuest(); | 52 virtual ~ExtensionOptionsGuest(); |
50 void SetUpAutoSize(); | 53 void SetUpAutoSize(); |
51 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 54 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
52 | 55 |
53 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 56 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
54 extension_function_dispatcher_; | 57 extension_function_dispatcher_; |
55 GURL options_page_; | 58 GURL options_page_; |
56 | 59 |
57 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); | 60 DISALLOW_COPY_AND_ASSIGN(ExtensionOptionsGuest); |
58 }; | 61 }; |
59 | 62 |
60 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ | 63 #endif // CHROME_BROWSER_GUEST_VIEW_EXTENSION_OPTIONS_EXTENSION_OPTIONS_GUEST_H
_ |
OLD | NEW |