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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_cookie_helper.cc

Issue 10796033: Move files related to registry-controlled domains into a new net/base/registry_controlled_domains/ … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update checkout Created 8 years, 5 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) 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 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" 5 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h"
6 6
7 #include "utility" 7 #include "utility"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/stl_util.h" 12 #include "base/stl_util.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "net/base/registry_controlled_domain.h" 16 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
17 #include "net/cookies/canonical_cookie.h" 17 #include "net/cookies/canonical_cookie.h"
18 #include "net/cookies/parsed_cookie.h" 18 #include "net/cookies/parsed_cookie.h"
19 #include "net/url_request/url_request_context.h" 19 #include "net/url_request/url_request_context.h"
20 #include "net/url_request/url_request_context_getter.h" 20 #include "net/url_request/url_request_context_getter.h"
21 21
22 using content::BrowserThread; 22 using content::BrowserThread;
23 23
24 BrowsingDataCookieHelper::BrowsingDataCookieHelper( 24 BrowsingDataCookieHelper::BrowsingDataCookieHelper(
25 net::URLRequestContextGetter* request_context_getter) 25 net::URLRequestContextGetter* request_context_getter)
26 : is_fetching_(false), 26 : is_fetching_(false),
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 221 }
222 222
223 void CannedBrowsingDataCookieHelper::AddCookie( 223 void CannedBrowsingDataCookieHelper::AddCookie(
224 const GURL& frame_url, 224 const GURL& frame_url,
225 const net::CanonicalCookie& cookie) { 225 const net::CanonicalCookie& cookie) {
226 net::CookieList* cookie_list = 226 net::CookieList* cookie_list =
227 GetCookiesFor(frame_url.GetOrigin()); 227 GetCookiesFor(frame_url.GetOrigin());
228 DeleteMatchingCookie(cookie, cookie_list); 228 DeleteMatchingCookie(cookie, cookie_list);
229 cookie_list->push_back(cookie); 229 cookie_list->push_back(cookie);
230 } 230 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/history_url_provider.cc ('k') | chrome/browser/content_settings/local_shared_objects_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698