| 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/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
| 12 #include "chrome/browser/profile.h" | 12 #include "chrome/browser/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 #include "webkit/glue/webkit_glue.h" | |
| 18 | 17 |
| 19 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile) | 18 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile) |
| 20 : tracker_(profile->GetDatabaseTracker()), | 19 : tracker_(profile->GetDatabaseTracker()), |
| 21 completion_callback_(NULL), | 20 completion_callback_(NULL), |
| 22 is_fetching_(false) { | 21 is_fetching_(false) { |
| 23 } | 22 } |
| 24 | 23 |
| 25 BrowsingDataDatabaseHelper::~BrowsingDataDatabaseHelper() { | 24 BrowsingDataDatabaseHelper::~BrowsingDataDatabaseHelper() { |
| 26 } | 25 } |
| 27 | 26 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 web_security_origin.databaseIdentifier().utf8(), | 128 web_security_origin.databaseIdentifier().utf8(), |
| 130 description, | 129 description, |
| 131 0, | 130 0, |
| 132 base::Time())); | 131 base::Time())); |
| 133 } | 132 } |
| 134 | 133 |
| 135 void CannedBrowsingDataDatabaseHelper::StartFetching( | 134 void CannedBrowsingDataDatabaseHelper::StartFetching( |
| 136 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) { | 135 Callback1<const std::vector<DatabaseInfo>& >::Type* callback) { |
| 137 callback->Run(database_info_); | 136 callback->Run(database_info_); |
| 138 } | 137 } |
| OLD | NEW |