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

Side by Side Diff: chrome/browser/ui/apps/chrome_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 CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_
6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 content::WebContents* web_contents, 47 content::WebContents* web_contents,
48 SkColor initial_color) OVERRIDE; 48 SkColor initial_color) OVERRIDE;
49 virtual void RunFileChooser( 49 virtual void RunFileChooser(
50 content::WebContents* tab, 50 content::WebContents* tab,
51 const content::FileChooserParams& params) OVERRIDE; 51 const content::FileChooserParams& params) OVERRIDE;
52 virtual void RequestMediaAccessPermission( 52 virtual void RequestMediaAccessPermission(
53 content::WebContents* web_contents, 53 content::WebContents* web_contents,
54 const content::MediaStreamRequest& request, 54 const content::MediaStreamRequest& request,
55 const content::MediaResponseCallback& callback, 55 const content::MediaResponseCallback& callback,
56 const extensions::Extension* extension) OVERRIDE; 56 const extensions::Extension* extension) OVERRIDE;
57 virtual bool CheckMediaAccessPermission(
58 content::WebContents* web_contents,
59 const GURL& security_origin,
60 content::MediaStreamType type,
61 const extensions::Extension* extension) OVERRIDE;
57 virtual int PreferredIconSize() OVERRIDE; 62 virtual int PreferredIconSize() OVERRIDE;
58 virtual gfx::ImageSkia GetAppDefaultIcon() OVERRIDE; 63 virtual gfx::ImageSkia GetAppDefaultIcon() OVERRIDE;
59 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 64 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
60 bool blocked) OVERRIDE; 65 bool blocked) OVERRIDE;
61 virtual bool IsWebContentsVisible( 66 virtual bool IsWebContentsVisible(
62 content::WebContents* web_contents) OVERRIDE; 67 content::WebContents* web_contents) OVERRIDE;
63 virtual void SetTerminatingCallback(const base::Closure& callback) OVERRIDE; 68 virtual void SetTerminatingCallback(const base::Closure& callback) OVERRIDE;
64 69
65 // content::NotificationObserver: 70 // content::NotificationObserver:
66 virtual void Observe(int type, 71 virtual void Observe(int type,
67 const content::NotificationSource& source, 72 const content::NotificationSource& source,
68 const content::NotificationDetails& details) OVERRIDE; 73 const content::NotificationDetails& details) OVERRIDE;
69 74
70 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_; 75 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_;
71 base::Closure terminating_callback_; 76 base::Closure terminating_callback_;
72 content::NotificationRegistrar registrar_; 77 content::NotificationRegistrar registrar_;
73 78
74 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate); 79 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate);
75 }; 80 };
76 81
77 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ 82 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | chrome/browser/ui/apps/chrome_app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698