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/browsing_data_database_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 12 #include "chrome/browser/browsing_data/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/storage_partition.h" | 15 #include "content/public/browser/storage_partition.h" |
16 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" | 18 #include "third_party/WebKit/public/platform/WebCString.h" |
19 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 19 #include "third_party/WebKit/public/platform/WebString.h" |
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" |
21 | 21 |
22 using content::BrowserContext; | 22 using content::BrowserContext; |
23 using content::BrowserThread; | 23 using content::BrowserThread; |
24 using WebKit::WebSecurityOrigin; | 24 using WebKit::WebSecurityOrigin; |
25 | 25 |
26 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo( | 26 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo( |
27 const std::string& host, | 27 const std::string& host, |
28 const std::string& database_name, | 28 const std::string& database_name, |
29 const std::string& origin_identifier, | 29 const std::string& origin_identifier, |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 info->description, | 234 info->description, |
235 web_security_origin.toString().utf8(), | 235 web_security_origin.toString().utf8(), |
236 0, | 236 0, |
237 base::Time())); | 237 base::Time())); |
238 } | 238 } |
239 | 239 |
240 BrowserThread::PostTask( | 240 BrowserThread::PostTask( |
241 BrowserThread::UI, FROM_HERE, | 241 BrowserThread::UI, FROM_HERE, |
242 base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this)); | 242 base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this)); |
243 } | 243 } |
OLD | NEW |