OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |