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" |
11 #include "chrome/browser/browser_thread.h" | 11 #include "chrome/browser/browser_thread.h" |
12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
14 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" | 14 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
17 | 17 |
18 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile) | 18 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile) |
19 : tracker_(profile->GetDatabaseTracker()), | 19 : tracker_(profile->GetDatabaseTracker()), |
20 completion_callback_(NULL), | 20 completion_callback_(NULL), |
21 is_fetching_(false) { | 21 is_fetching_(false) { |
22 } | 22 } |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 bool CannedBrowsingDataDatabaseHelper::empty() const { | 150 bool CannedBrowsingDataDatabaseHelper::empty() const { |
151 return database_info_.empty(); | 151 return database_info_.empty(); |
152 } | 152 } |
153 | 153 |
154 void CannedBrowsingDataDatabaseHelper::StartFetching( | 154 void CannedBrowsingDataDatabaseHelper::StartFetching( |
155 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) { | 155 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) { |
156 callback->Run(database_info_); | 156 callback->Run(database_info_); |
157 delete callback; | 157 delete callback; |
158 } | 158 } |
OLD | NEW |