| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "content/browser/in_process_webkit/webkit_context.h" | 13 #include "content/browser/in_process_webkit/webkit_context.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 18 #include "webkit/glue/webkit_glue.h" | 18 #include "webkit/glue/webkit_glue.h" |
| 19 | 19 |
| 20 using content::BrowserThread; | 20 using content::BrowserThread; |
| 21 using WebKit::WebSecurityOrigin; | 21 using WebKit::WebSecurityOrigin; |
| 22 | 22 |
| 23 BrowsingDataLocalStorageHelper::LocalStorageInfo::LocalStorageInfo() | 23 BrowsingDataLocalStorageHelper::LocalStorageInfo::LocalStorageInfo() |
| 24 : port(0), | 24 : port(0), |
| 25 size(0) { | 25 size(0) { |
| 26 } | 26 } |
| 27 | 27 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 0, | 226 0, |
| 227 base::Time())); | 227 base::Time())); |
| 228 } | 228 } |
| 229 pending_local_storage_info_.clear(); | 229 pending_local_storage_info_.clear(); |
| 230 | 230 |
| 231 BrowserThread::PostTask( | 231 BrowserThread::PostTask( |
| 232 BrowserThread::UI, FROM_HERE, | 232 BrowserThread::UI, FROM_HERE, |
| 233 base::Bind(&CannedBrowsingDataLocalStorageHelper::NotifyInUIThread, | 233 base::Bind(&CannedBrowsingDataLocalStorageHelper::NotifyInUIThread, |
| 234 this)); | 234 this)); |
| 235 } | 235 } |
| OLD | NEW |