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

Side by Side Diff: chrome/browser/browsing_data_database_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_database_helper.h" 5 #include "chrome/browser/browsing_data_database_helper.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 UTF8ToUTF16(origin.spec())); 124 UTF8ToUTF16(origin.spec()));
125 database_info_.push_back(DatabaseInfo( 125 database_info_.push_back(DatabaseInfo(
126 web_security_origin.host().utf8(), 126 web_security_origin.host().utf8(),
127 name, 127 name,
128 web_security_origin.databaseIdentifier().utf8(), 128 web_security_origin.databaseIdentifier().utf8(),
129 description, 129 description,
130 0, 130 0,
131 base::Time())); 131 base::Time()));
132 } 132 }
133 133
134 void CannedBrowsingDataDatabaseHelper::Reset() {
135 database_info_.clear();
136 }
137
134 void CannedBrowsingDataDatabaseHelper::StartFetching( 138 void CannedBrowsingDataDatabaseHelper::StartFetching(
135 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) { 139 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) {
136 callback->Run(database_info_); 140 callback->Run(database_info_);
137 } 141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698