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_VIEW_PERMISSION_HELPER_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/metrics/user_metrics_action.h" | 9 #include "base/metrics/user_metrics_action.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
11 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
12 #include "content/public/common/media_stream_request.h" | 12 #include "content/public/common/media_stream_request.h" |
13 #include "extensions/browser/guest_view/guest_view_constants.h" | |
14 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" | 13 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" |
| 14 #include "extensions/common/guest_view/guest_view_constants.h" |
15 | 15 |
16 using base::UserMetricsAction; | 16 using base::UserMetricsAction; |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 | 19 |
20 class WebViewGuest; | 20 class WebViewGuest; |
21 class WebViewPermissionHelperDelegate; | 21 class WebViewPermissionHelperDelegate; |
22 | 22 |
23 // WebViewPermissionHelper manages <webview> permission requests. This helper | 23 // WebViewPermissionHelper manages <webview> permission requests. This helper |
24 // class is owned by WebViewGuest. Its purpose is to request permission for | 24 // class is owned by WebViewGuest. Its purpose is to request permission for |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 WebViewGuest* const web_view_guest_; | 152 WebViewGuest* const web_view_guest_; |
153 | 153 |
154 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_; | 154 base::WeakPtrFactory<WebViewPermissionHelper> weak_factory_; |
155 | 155 |
156 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper); | 156 DISALLOW_COPY_AND_ASSIGN(WebViewPermissionHelper); |
157 }; | 157 }; |
158 | 158 |
159 } // namespace extensions | 159 } // namespace extensions |
160 | 160 |
161 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ | 161 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_PERMISSION_HELPER_H_ |
OLD | NEW |