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

Side by Side Diff: chrome/browser/browsing_data_appcache_helper.cc

Issue 2370001: Store blocked cookies in the tab contents. (Closed)
Patch Set: updates Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_appcache_helper.h" 5 #include "chrome/browser/browsing_data_appcache_helper.h"
6 6
7 #include "chrome/browser/chrome_thread.h" 7 #include "chrome/browser/chrome_thread.h"
8 #include "chrome/browser/net/chrome_url_request_context.h" 8 #include "chrome/browser/net/chrome_url_request_context.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 typedef std::map<GURL, appcache::AppCacheInfoVector> InfoByOrigin; 109 typedef std::map<GURL, appcache::AppCacheInfoVector> InfoByOrigin;
110 InfoByOrigin& origin_map = info_collection_->infos_by_origin; 110 InfoByOrigin& origin_map = info_collection_->infos_by_origin;
111 origin_map[manifest_url.GetOrigin()].push_back( 111 origin_map[manifest_url.GetOrigin()].push_back(
112 appcache::AppCacheInfo(manifest_url, 112 appcache::AppCacheInfo(manifest_url,
113 0, 113 0,
114 base::Time(), 114 base::Time(),
115 base::Time(), 115 base::Time(),
116 base::Time())); 116 base::Time()));
117 } 117 }
118 118
119 void CannedBrowsingDataAppCacheHelper::Reset() {
120 info_collection_->infos_by_origin.clear();
121 }
122
119 void CannedBrowsingDataAppCacheHelper::StartFetching( 123 void CannedBrowsingDataAppCacheHelper::StartFetching(
120 Callback0::Type* completion_callback) { 124 Callback0::Type* completion_callback) {
121 completion_callback->Run(); 125 completion_callback->Run();
122 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698