| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/renderer/content_settings_observer.h" | 5 #include "chrome/renderer/content_settings_observer.h" |
| 6 | 6 |
| 7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
| 8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
| 9 #include "content/common/database_messages.h" | 9 #include "content/common/database_messages.h" |
| 10 #include "content/common/view_messages.h" | |
| 11 #include "content/public/renderer/navigation_state.h" | 10 #include "content/public/renderer/navigation_state.h" |
| 12 #include "content/public/renderer/render_view.h" | 11 #include "content/public/renderer/render_view.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 20 | 19 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // CONTENT_SETTING_ASK is only valid for cookies. | 291 // CONTENT_SETTING_ASK is only valid for cookies. |
| 293 return current_content_settings_.settings[settings_type] != | 292 return current_content_settings_.settings[settings_type] != |
| 294 CONTENT_SETTING_BLOCK; | 293 CONTENT_SETTING_BLOCK; |
| 295 } | 294 } |
| 296 | 295 |
| 297 void ContentSettingsObserver::ClearBlockedContentSettings() { | 296 void ContentSettingsObserver::ClearBlockedContentSettings() { |
| 298 for (size_t i = 0; i < arraysize(content_blocked_); ++i) | 297 for (size_t i = 0; i < arraysize(content_blocked_); ++i) |
| 299 content_blocked_[i] = false; | 298 content_blocked_[i] = false; |
| 300 cached_storage_permissions_.clear(); | 299 cached_storage_permissions_.clear(); |
| 301 } | 300 } |
| OLD | NEW |