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

Side by Side Diff: chrome/browser/browsing_data_local_storage_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_local_storage_helper.h" 5 #include "chrome/browser/browsing_data_local_storage_helper.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 web_security_origin.host().utf8(), 132 web_security_origin.host().utf8(),
133 web_security_origin.port(), 133 web_security_origin.port(),
134 web_security_origin.databaseIdentifier().utf8(), 134 web_security_origin.databaseIdentifier().utf8(),
135 web_security_origin.toString().utf8(), 135 web_security_origin.toString().utf8(),
136 profile_->GetWebKitContext()->dom_storage_context()-> 136 profile_->GetWebKitContext()->dom_storage_context()->
137 GetLocalStorageFilePath(web_security_origin.databaseIdentifier()), 137 GetLocalStorageFilePath(web_security_origin.databaseIdentifier()),
138 0, 138 0,
139 base::Time())); 139 base::Time()));
140 } 140 }
141 141
142 void CannedBrowsingDataLocalStorageHelper::Reset() {
143 local_storage_info_.clear();
144 }
145
142 void CannedBrowsingDataLocalStorageHelper::StartFetching( 146 void CannedBrowsingDataLocalStorageHelper::StartFetching(
143 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) { 147 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) {
144 callback->Run(local_storage_info_); 148 callback->Run(local_storage_info_);
145 } 149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698