| 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/browser/ui/webui/collected_cookies_ui_delegate.h" | 5 #include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 10 #include "chrome/browser/cookies_tree_model.h" | 11 #include "chrome/browser/cookies_tree_model.h" |
| 11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 13 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 13 #include "chrome/browser/ui/webui/constrained_html_ui.h" | 14 #include "chrome/browser/ui/webui/constrained_html_ui.h" |
| 14 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" | 15 #include "chrome/browser/ui/webui/cookies_tree_model_util.h" |
| 15 #include "chrome/common/jstemplate_builder.h" | 16 #include "chrome/common/jstemplate_builder.h" |
| 16 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 17 #include "content/browser/tab_contents/tab_contents.h" | 18 #include "content/browser/tab_contents/tab_contents.h" |
| 18 #include "content/common/notification_service.h" | 19 #include "content/common/notification_service.h" |
| 19 #include "grit/browser_resources.h" | 20 #include "grit/browser_resources.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 if (!args->GetString(0, &node_path)) | 281 if (!args->GetString(0, &node_path)) |
| 281 return; | 282 return; |
| 282 | 283 |
| 283 CookieTreeOriginNode* origin_node = GetOriginNode( | 284 CookieTreeOriginNode* origin_node = GetOriginNode( |
| 284 blocked_cookies_tree_model_.get(), node_path); | 285 blocked_cookies_tree_model_.get(), node_path); |
| 285 if (!origin_node) | 286 if (!origin_node) |
| 286 return; | 287 return; |
| 287 | 288 |
| 288 AddContentException(origin_node, CONTENT_SETTING_SESSION_ONLY); | 289 AddContentException(origin_node, CONTENT_SETTING_SESSION_ONLY); |
| 289 } | 290 } |
| OLD | NEW |