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