| 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_local_storage_helper.h" | 5 #include "chrome/browser/browsing_data_local_storage_helper.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 web_security_origin.host().utf8(), | 132 web_security_origin.host().utf8(), |
| 133 web_security_origin.port(), | 133 web_security_origin.port(), |
| 134 web_security_origin.databaseIdentifier().utf8(), | 134 web_security_origin.databaseIdentifier().utf8(), |
| 135 web_security_origin.toString().utf8(), | 135 web_security_origin.toString().utf8(), |
| 136 profile_->GetWebKitContext()->dom_storage_context()-> | 136 profile_->GetWebKitContext()->dom_storage_context()-> |
| 137 GetLocalStorageFilePath(web_security_origin.databaseIdentifier()), | 137 GetLocalStorageFilePath(web_security_origin.databaseIdentifier()), |
| 138 0, | 138 0, |
| 139 base::Time())); | 139 base::Time())); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void CannedBrowsingDataLocalStorageHelper::Reset() { |
| 143 local_storage_info_.clear(); |
| 144 } |
| 145 |
| 142 void CannedBrowsingDataLocalStorageHelper::StartFetching( | 146 void CannedBrowsingDataLocalStorageHelper::StartFetching( |
| 143 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) { | 147 Callback1<const std::vector<LocalStorageInfo>& >::Type* callback) { |
| 144 callback->Run(local_storage_info_); | 148 callback->Run(local_storage_info_); |
| 145 } | 149 } |
| OLD | NEW |