OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
10 #include "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; | 47 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; |
48 virtual void ResizeDueToAutoResize(content::WebContents* source, | 48 virtual void ResizeDueToAutoResize(content::WebContents* source, |
49 const gfx::Size& pref_size) OVERRIDE; | 49 const gfx::Size& pref_size) OVERRIDE; |
50 | 50 |
51 // content::WebContentsObserver | 51 // content::WebContentsObserver |
52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
53 virtual void RenderViewCreated( | 53 virtual void RenderViewCreated( |
54 content::RenderViewHost* render_view_host) OVERRIDE; | 54 content::RenderViewHost* render_view_host) OVERRIDE; |
55 | 55 |
56 // ExtensionFunctionDispatcher::Delegate | 56 // ExtensionFunctionDispatcher::Delegate |
57 virtual ExtensionWindowController* GetExtensionWindowController() | 57 virtual extensions::WindowController* GetExtensionWindowController() |
58 const OVERRIDE; | 58 const OVERRIDE; |
59 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 59 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
60 | 60 |
61 // Message handlers. | 61 // Message handlers. |
62 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 62 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
63 private: | 63 private: |
64 // Picker to notify when loading state changes. Weak pointer. | 64 // Picker to notify when loading state changes. Weak pointer. |
65 WebIntentPicker* picker_; | 65 WebIntentPicker* picker_; |
66 | 66 |
67 // The WebContents container. Weak pointer. | 67 // The WebContents container. Weak pointer. |
68 content::WebContents* web_contents_; | 68 content::WebContents* web_contents_; |
69 | 69 |
70 Browser* browser_; // Weak pointer. | 70 Browser* browser_; // Weak pointer. |
71 | 71 |
72 // Dispatch handler for extension APIs. | 72 // Dispatch handler for extension APIs. |
73 ExtensionFunctionDispatcher extension_function_dispatcher_; | 73 ExtensionFunctionDispatcher extension_function_dispatcher_; |
74 }; | 74 }; |
75 | 75 |
76 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ | 76 #endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENT_INLINE_DISPOSITION_DELEGATE_H_ |
OLD | NEW |