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 EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/web_contents_delegate.h" | 10 #include "content/public/browser/web_contents_delegate.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 aura::Window* GetNativeWindow(); | 54 aura::Window* GetNativeWindow(); |
55 | 55 |
56 // Returns the routing ID of the render view host of |web_contents_|. | 56 // Returns the routing ID of the render view host of |web_contents_|. |
57 int GetRenderViewRoutingID(); | 57 int GetRenderViewRoutingID(); |
58 | 58 |
59 // content::WebContentsDelegate overrides: | 59 // content::WebContentsDelegate overrides: |
60 virtual void RequestMediaAccessPermission( | 60 virtual void RequestMediaAccessPermission( |
61 content::WebContents* web_contents, | 61 content::WebContents* web_contents, |
62 const content::MediaStreamRequest& request, | 62 const content::MediaStreamRequest& request, |
63 const content::MediaResponseCallback& callback) OVERRIDE; | 63 const content::MediaResponseCallback& callback) OVERRIDE; |
| 64 virtual bool CheckMediaAccessPermission( |
| 65 content::WebContents* web_contents, |
| 66 const GURL& security_origin, |
| 67 content::MediaStreamType type) OVERRIDE; |
64 | 68 |
65 // content::WebContentsObserver overrides: | 69 // content::WebContentsObserver overrides: |
66 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 70 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
67 | 71 |
68 // ExtensionFunctionDispatcher::Delegate overrides: | 72 // ExtensionFunctionDispatcher::Delegate overrides: |
69 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | 73 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
70 | 74 |
71 private: | 75 private: |
72 // IPC handler. | 76 // IPC handler. |
73 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 77 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
74 | 78 |
75 // The extension that spawned this window. Not owned. | 79 // The extension that spawned this window. Not owned. |
76 const Extension* extension_; | 80 const Extension* extension_; |
77 | 81 |
78 scoped_ptr<content::WebContents> web_contents_; | 82 scoped_ptr<content::WebContents> web_contents_; |
79 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 83 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
80 | 84 |
81 DISALLOW_COPY_AND_ASSIGN(ShellAppWindow); | 85 DISALLOW_COPY_AND_ASSIGN(ShellAppWindow); |
82 }; | 86 }; |
83 | 87 |
84 } // namespace extensions | 88 } // namespace extensions |
85 | 89 |
86 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_ | 90 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_H_ |
OLD | NEW |