| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |