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 "base/gtest_prod_util.h" | 11 #include "base/gtest_prod_util.h" |
| 12 #include "base/macros.h" |
12 #include "components/content_settings/core/common/content_settings.h" | 13 #include "components/content_settings/core/common/content_settings.h" |
13 #include "components/content_settings/core/common/content_settings_types.h" | 14 #include "components/content_settings/core/common/content_settings_types.h" |
14 #include "content/public/renderer/render_frame_observer.h" | 15 #include "content/public/renderer/render_frame_observer.h" |
15 #include "content/public/renderer/render_frame_observer_tracker.h" | 16 #include "content/public/renderer/render_frame_observer_tracker.h" |
16 #include "third_party/WebKit/public/web/WebContentSettingsClient.h" | 17 #include "third_party/WebKit/public/web/WebContentSettingsClient.h" |
17 | 18 |
18 class GURL; | 19 class GURL; |
19 | 20 |
20 namespace blink { | 21 namespace blink { |
21 class WebFrame; | 22 class WebFrame; |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; | 162 typedef std::map<int, blink::WebContentSettingCallbacks> PermissionRequestMap; |
162 PermissionRequestMap permission_requests_; | 163 PermissionRequestMap permission_requests_; |
163 | 164 |
164 // If true, IsWhitelistedForContentSettings will always return true. | 165 // If true, IsWhitelistedForContentSettings will always return true. |
165 const bool should_whitelist_; | 166 const bool should_whitelist_; |
166 | 167 |
167 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); | 168 DISALLOW_COPY_AND_ASSIGN(ContentSettingsObserver); |
168 }; | 169 }; |
169 | 170 |
170 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ | 171 #endif // CHROME_RENDERER_CONTENT_SETTINGS_OBSERVER_H_ |
OLD | NEW |