| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 base::Time())); | 143 base::Time())); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void CannedBrowsingDataDatabaseHelper::Reset() { | 146 void CannedBrowsingDataDatabaseHelper::Reset() { |
| 147 database_info_.clear(); | 147 database_info_.clear(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void CannedBrowsingDataDatabaseHelper::StartFetching( | 150 void CannedBrowsingDataDatabaseHelper::StartFetching( |
| 151 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) { | 151 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) { |
| 152 callback->Run(database_info_); | 152 callback->Run(database_info_); |
| 153 delete callback; |
| 153 } | 154 } |
| OLD | NEW |