OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 6 #define CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "chrome/common/content_settings.h" | 11 #include "chrome/common/content_settings.h" |
| 12 #include "components/content_settings/core/common/content_settings_types.h" |
12 #include "content/public/renderer/render_frame_observer.h" | 13 #include "content/public/renderer/render_frame_observer.h" |
13 #include "content/public/renderer/render_frame_observer_tracker.h" | 14 #include "content/public/renderer/render_frame_observer_tracker.h" |
14 #include "extensions/common/permissions/api_permission.h" | 15 #include "extensions/common/permissions/api_permission.h" |
15 #include "third_party/WebKit/public/web/WebPermissionClient.h" | 16 #include "third_party/WebKit/public/web/WebPermissionClient.h" |
16 | 17 |
17 class GURL; | 18 class GURL; |
18 | 19 |
19 namespace blink { | 20 namespace blink { |
20 class WebFrame; | 21 class WebFrame; |
21 class WebSecurityOrigin; | 22 class WebSecurityOrigin; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 bool npapi_plugins_blocked_; | 144 bool npapi_plugins_blocked_; |
144 | 145 |
145 int current_request_id_; | 146 int current_request_id_; |
146 typedef std::map<int, blink::WebPermissionCallbacks> PermissionRequestMap; | 147 typedef std::map<int, blink::WebPermissionCallbacks> PermissionRequestMap; |
147 PermissionRequestMap permission_requests_; | 148 PermissionRequestMap permission_requests_; |
148 | 149 |
149 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 150 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
150 }; | 151 }; |
151 | 152 |
152 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 153 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
OLD | NEW |