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_EXTENSIONS_SHELL_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 virtual bool IsPopupOrPanel( | 103 virtual bool IsPopupOrPanel( |
104 const content::WebContents* source) const OVERRIDE; | 104 const content::WebContents* source) const OVERRIDE; |
105 virtual void MoveContents( | 105 virtual void MoveContents( |
106 content::WebContents* source, const gfx::Rect& pos) OVERRIDE; | 106 content::WebContents* source, const gfx::Rect& pos) OVERRIDE; |
107 virtual void NavigationStateChanged(const content::WebContents* source, | 107 virtual void NavigationStateChanged(const content::WebContents* source, |
108 unsigned changed_flags) OVERRIDE; | 108 unsigned changed_flags) OVERRIDE; |
109 virtual void ToggleFullscreenModeForTab(content::WebContents* source, | 109 virtual void ToggleFullscreenModeForTab(content::WebContents* source, |
110 bool enter_fullscreen) OVERRIDE; | 110 bool enter_fullscreen) OVERRIDE; |
111 virtual bool IsFullscreenForTabOrPending( | 111 virtual bool IsFullscreenForTabOrPending( |
112 const content::WebContents* source) const OVERRIDE; | 112 const content::WebContents* source) const OVERRIDE; |
| 113 virtual void RequestMediaAccessPermission( |
| 114 content::WebContents* web_contents, |
| 115 const content::MediaStreamRequest* request, |
| 116 const content::MediaResponseCallback& callback) OVERRIDE; |
113 | 117 |
114 // content::NotificationObserver implementation. | 118 // content::NotificationObserver implementation. |
115 virtual void Observe(int type, | 119 virtual void Observe(int type, |
116 const content::NotificationSource& source, | 120 const content::NotificationSource& source, |
117 const content::NotificationDetails& details) OVERRIDE; | 121 const content::NotificationDetails& details) OVERRIDE; |
118 | 122 |
119 // ExtensionFunctionDispatcher::Delegate implementation. | 123 // ExtensionFunctionDispatcher::Delegate implementation. |
120 virtual ExtensionWindowController* GetExtensionWindowController() const | 124 virtual ExtensionWindowController* GetExtensionWindowController() const |
121 OVERRIDE; | 125 OVERRIDE; |
122 | 126 |
123 // Message handlers. | 127 // Message handlers. |
124 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 128 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
125 | 129 |
126 Profile* profile_; // weak pointer - owned by ProfileManager. | 130 Profile* profile_; // weak pointer - owned by ProfileManager. |
127 // weak pointer - owned by ExtensionService. | 131 // weak pointer - owned by ExtensionService. |
128 const extensions::Extension* extension_; | 132 const extensions::Extension* extension_; |
129 | 133 |
130 const SessionID session_id_; | 134 const SessionID session_id_; |
131 scoped_ptr<TabContentsWrapper> contents_wrapper_; | 135 scoped_ptr<TabContentsWrapper> contents_wrapper_; |
132 // web_contents_ is owned by contents_wrapper_. | 136 // web_contents_ is owned by contents_wrapper_. |
133 content::WebContents* web_contents_; | 137 content::WebContents* web_contents_; |
134 content::NotificationRegistrar registrar_; | 138 content::NotificationRegistrar registrar_; |
135 ExtensionFunctionDispatcher extension_function_dispatcher_; | 139 ExtensionFunctionDispatcher extension_function_dispatcher_; |
136 | 140 |
137 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 141 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
138 }; | 142 }; |
139 | 143 |
140 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 144 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
OLD | NEW |