Chromium Code Reviews| 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_database_helper.h" | 5 #include "chrome/browser/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/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.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" |
|
darin (slow to review)
2011/12/02 23:17:52
need to fix sorting? :-(
| |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 18 | 18 |
| 19 using content::BrowserThread; | 19 using content::BrowserThread; |
| 20 using WebKit::WebSecurityOrigin; | 20 using WebKit::WebSecurityOrigin; |
| 21 | 21 |
| 22 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo() | 22 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo() |
| 23 : size(0) { | 23 : size(0) { |
| 24 } | 24 } |
| 25 | 25 |
| 26 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo( | 26 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo( |
| 27 const std::string& host, | 27 const std::string& host, |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 web_security_origin.toString().utf8(), | 245 web_security_origin.toString().utf8(), |
| 246 0, | 246 0, |
| 247 base::Time())); | 247 base::Time())); |
| 248 } | 248 } |
| 249 pending_database_info_.clear(); | 249 pending_database_info_.clear(); |
| 250 | 250 |
| 251 BrowserThread::PostTask( | 251 BrowserThread::PostTask( |
| 252 BrowserThread::UI, FROM_HERE, | 252 BrowserThread::UI, FROM_HERE, |
| 253 base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this)); | 253 base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this)); |
| 254 } | 254 } |
| OLD | NEW |