Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/ui/extensions/shell_window.h

Issue 10542092: Refactor the content interface for RequestMediaAccessPermission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual bool IsPopupOrPanel( 106 virtual bool IsPopupOrPanel(
107 const content::WebContents* source) const OVERRIDE; 107 const content::WebContents* source) const OVERRIDE;
108 virtual void MoveContents( 108 virtual void MoveContents(
109 content::WebContents* source, const gfx::Rect& pos) OVERRIDE; 109 content::WebContents* source, const gfx::Rect& pos) OVERRIDE;
110 virtual void NavigationStateChanged(const content::WebContents* source, 110 virtual void NavigationStateChanged(const content::WebContents* source,
111 unsigned changed_flags) OVERRIDE; 111 unsigned changed_flags) OVERRIDE;
112 virtual void ToggleFullscreenModeForTab(content::WebContents* source, 112 virtual void ToggleFullscreenModeForTab(content::WebContents* source,
113 bool enter_fullscreen) OVERRIDE; 113 bool enter_fullscreen) OVERRIDE;
114 virtual bool IsFullscreenForTabOrPending( 114 virtual bool IsFullscreenForTabOrPending(
115 const content::WebContents* source) const OVERRIDE; 115 const content::WebContents* source) const OVERRIDE;
116 virtual void RequestMediaAccessPermission(
117 content::WebContents* web_contents,
118 const content::MediaStreamRequest* request,
119 const content::MediaResponseCallback& callback) OVERRIDE;
116 120
117 // content::NotificationObserver implementation. 121 // content::NotificationObserver implementation.
118 virtual void Observe(int type, 122 virtual void Observe(int type,
119 const content::NotificationSource& source, 123 const content::NotificationSource& source,
120 const content::NotificationDetails& details) OVERRIDE; 124 const content::NotificationDetails& details) OVERRIDE;
121 125
122 // ExtensionFunctionDispatcher::Delegate implementation. 126 // ExtensionFunctionDispatcher::Delegate implementation.
123 virtual ExtensionWindowController* GetExtensionWindowController() const 127 virtual ExtensionWindowController* GetExtensionWindowController() const
124 OVERRIDE; 128 OVERRIDE;
125 129
126 // Message handlers. 130 // Message handlers.
127 void OnRequest(const ExtensionHostMsg_Request_Params& params); 131 void OnRequest(const ExtensionHostMsg_Request_Params& params);
128 132
129 Profile* profile_; // weak pointer - owned by ProfileManager. 133 Profile* profile_; // weak pointer - owned by ProfileManager.
130 // weak pointer - owned by ExtensionService. 134 // weak pointer - owned by ExtensionService.
131 const extensions::Extension* extension_; 135 const extensions::Extension* extension_;
132 136
133 const SessionID session_id_; 137 const SessionID session_id_;
134 scoped_ptr<TabContents> contents_; 138 scoped_ptr<TabContents> contents_;
135 // web_contents_ is owned by contents_. 139 // web_contents_ is owned by contents_.
136 content::WebContents* web_contents_; 140 content::WebContents* web_contents_;
137 content::NotificationRegistrar registrar_; 141 content::NotificationRegistrar registrar_;
138 ExtensionFunctionDispatcher extension_function_dispatcher_; 142 ExtensionFunctionDispatcher extension_function_dispatcher_;
139 143
140 DISALLOW_COPY_AND_ASSIGN(ShellWindow); 144 DISALLOW_COPY_AND_ASSIGN(ShellWindow);
141 }; 145 };
142 146
143 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ 147 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698