| 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/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/WebString.h" | 
| 18 | 18 | 
|  | 19 using content::BrowserThread; | 
| 19 using WebKit::WebSecurityOrigin; | 20 using WebKit::WebSecurityOrigin; | 
| 20 | 21 | 
| 21 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo() | 22 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo() | 
| 22     : size(0) { | 23     : size(0) { | 
| 23 } | 24 } | 
| 24 | 25 | 
| 25 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo( | 26 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo( | 
| 26     const std::string& host, | 27     const std::string& host, | 
| 27     const std::string& database_name, | 28     const std::string& database_name, | 
| 28     const std::string& origin_identifier, | 29     const std::string& origin_identifier, | 
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 244         web_security_origin.toString().utf8(), | 245         web_security_origin.toString().utf8(), | 
| 245         0, | 246         0, | 
| 246         base::Time())); | 247         base::Time())); | 
| 247   } | 248   } | 
| 248   pending_database_info_.clear(); | 249   pending_database_info_.clear(); | 
| 249 | 250 | 
| 250   BrowserThread::PostTask( | 251   BrowserThread::PostTask( | 
| 251       BrowserThread::UI, FROM_HERE, | 252       BrowserThread::UI, FROM_HERE, | 
| 252       base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this)); | 253       base::Bind(&CannedBrowsingDataDatabaseHelper::NotifyInUIThread, this)); | 
| 253 } | 254 } | 
| OLD | NEW | 
|---|