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_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DELEGA
TE_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
9 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
10 #include "content/public/common/media_stream_request.h" | 11 #include "content/public/common/media_stream_request.h" |
11 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | 12 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
12 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 | 15 |
15 // A delegate class of WebViewPermissionHelper to request permissions that are | 16 // A delegate class of WebViewPermissionHelper to request permissions that are |
16 // not a part of extensions. | 17 // not a part of extensions. |
17 class WebViewPermissionHelperDelegate : public content::WebContentsObserver { | 18 class WebViewPermissionHelperDelegate : public content::WebContentsObserver { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 86 |
86 private: | 87 private: |
87 WebViewPermissionHelper* const web_view_permission_helper_; | 88 WebViewPermissionHelper* const web_view_permission_helper_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelperDelegate); | 90 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelperDelegate); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace extensions | 93 } // namespace extensions |
93 | 94 |
94 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DEL
EGATE_H_ | 95 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIWE_PERMISSION_HELPER_DEL
EGATE_H_ |
OLD | NEW |