OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 7 #include "base/bind.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/string_util.h" | 10 #include "base/string_util.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browsing_data_helper.h" | 12 #include "chrome/browser/browsing_data_helper.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/dom_storage_context.h" | 15 #include "content/public/browser/dom_storage_context.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
19 #include "webkit/glue/webkit_glue.h" | 19 #include "webkit/glue/webkit_glue.h" |
20 | 20 |
21 using content::BrowserContext; | 21 using content::BrowserContext; |
22 using content::BrowserThread; | 22 using content::BrowserThread; |
23 using content::DOMStorageContext; | 23 using content::DOMStorageContext; |
24 using WebKit::WebSecurityOrigin; | 24 using WebKit::WebSecurityOrigin; |
25 | 25 |
26 BrowsingDataLocalStorageHelper::LocalStorageInfo::LocalStorageInfo() | |
27 : port(0), | |
28 size(0) { | |
29 } | |
30 | |
31 BrowsingDataLocalStorageHelper::LocalStorageInfo::LocalStorageInfo( | 26 BrowsingDataLocalStorageHelper::LocalStorageInfo::LocalStorageInfo( |
32 const std::string& protocol, | 27 const std::string& protocol, |
33 const std::string& host, | 28 const std::string& host, |
34 unsigned short port, | 29 unsigned short port, |
35 const std::string& database_identifier, | 30 const std::string& database_identifier, |
36 const std::string& origin, | 31 const std::string& origin, |
37 const FilePath& file_path, | 32 const FilePath& file_path, |
38 int64 size, | 33 int64 size, |
39 base::Time last_modified) | 34 base::Time last_modified) |
40 : protocol(protocol), | 35 : protocol(protocol), |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 0, | 212 0, |
218 base::Time())); | 213 base::Time())); |
219 } | 214 } |
220 pending_local_storage_info_.clear(); | 215 pending_local_storage_info_.clear(); |
221 | 216 |
222 BrowserThread::PostTask( | 217 BrowserThread::PostTask( |
223 BrowserThread::UI, FROM_HERE, | 218 BrowserThread::UI, FROM_HERE, |
224 base::Bind(&CannedBrowsingDataLocalStorageHelper::NotifyInUIThread, | 219 base::Bind(&CannedBrowsingDataLocalStorageHelper::NotifyInUIThread, |
225 this)); | 220 this)); |
226 } | 221 } |
OLD | NEW |