Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(290)

Side by Side Diff: chrome/browser/ui/webui/collected_cookies_ui_delegate.cc

Issue 6951008: Have AppCache code go through the content embedder API for content settings checks. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_win.cc ('k') | content/browser/appcache/chrome_appcache_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698