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

Side by Side Diff: extensions/shell/browser/shell_app_delegate.h

Issue 562263002: Check media permissions through RenderFrameHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_get_sources
Patch Set: Rebase Created 6 years, 3 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
OLDNEW
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 EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
7 7
8 #include "extensions/browser/app_window/app_delegate.h" 8 #include "extensions/browser/app_window/app_delegate.h"
9 9
10 namespace extensions { 10 namespace extensions {
(...skipping 22 matching lines...) Expand all
33 content::WebContents* web_contents, 33 content::WebContents* web_contents,
34 SkColor initial_color) OVERRIDE; 34 SkColor initial_color) OVERRIDE;
35 virtual void RunFileChooser( 35 virtual void RunFileChooser(
36 content::WebContents* tab, 36 content::WebContents* tab,
37 const content::FileChooserParams& params) OVERRIDE; 37 const content::FileChooserParams& params) OVERRIDE;
38 virtual void RequestMediaAccessPermission( 38 virtual void RequestMediaAccessPermission(
39 content::WebContents* web_contents, 39 content::WebContents* web_contents,
40 const content::MediaStreamRequest& request, 40 const content::MediaStreamRequest& request,
41 const content::MediaResponseCallback& callback, 41 const content::MediaResponseCallback& callback,
42 const Extension* extension) OVERRIDE; 42 const Extension* extension) OVERRIDE;
43 virtual bool CheckMediaAccessPermission(content::WebContents* web_contents,
44 const GURL& security_origin,
45 content::MediaStreamType type,
46 const Extension* extension) OVERRIDE;
43 virtual int PreferredIconSize() OVERRIDE; 47 virtual int PreferredIconSize() OVERRIDE;
44 virtual gfx::ImageSkia GetAppDefaultIcon() OVERRIDE; 48 virtual gfx::ImageSkia GetAppDefaultIcon() OVERRIDE;
45 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 49 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
46 bool blocked) OVERRIDE; 50 bool blocked) OVERRIDE;
47 virtual bool IsWebContentsVisible( 51 virtual bool IsWebContentsVisible(
48 content::WebContents* web_contents) OVERRIDE; 52 content::WebContents* web_contents) OVERRIDE;
49 virtual void SetTerminatingCallback(const base::Closure& callback) OVERRIDE; 53 virtual void SetTerminatingCallback(const base::Closure& callback) OVERRIDE;
50 54
51 private: 55 private:
52 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); 56 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate);
53 }; 57 };
54 58
55 } // namespace extensions 59 } // namespace extensions
56 60
57 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ 61 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/shell/browser/media_capture_util.cc ('k') | extensions/shell/browser/shell_app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698