OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_indexed_db_helper.h" | 5 #include "chrome/browser/browsing_data_indexed_db_helper.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.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/browser_thread.h" | 12 #include "chrome/browser/browser_thread.h" |
13 #include "chrome/browser/in_process_webkit/webkit_context.h" | 13 #include "chrome/browser/in_process_webkit/webkit_context.h" |
14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" | 15 #include "third_party/WebKit/WebKit/chromium/public/WebCString.h" |
16 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebSecurityOrigin.h" |
17 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
18 #include "webkit/glue/webkit_glue.h" | 18 #include "webkit/glue/webkit_glue.h" |
19 | 19 |
20 using WebKit::WebSecurityOrigin; | 20 using WebKit::WebSecurityOrigin; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class BrowsingDataIndexedDBHelperImpl : public BrowsingDataIndexedDBHelper { | 24 class BrowsingDataIndexedDBHelperImpl : public BrowsingDataIndexedDBHelper { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 return indexed_db_info_.empty(); | 204 return indexed_db_info_.empty(); |
205 } | 205 } |
206 | 206 |
207 void CannedBrowsingDataIndexedDBHelper::StartFetching( | 207 void CannedBrowsingDataIndexedDBHelper::StartFetching( |
208 Callback1<const std::vector<IndexedDBInfo>& >::Type* callback) { | 208 Callback1<const std::vector<IndexedDBInfo>& >::Type* callback) { |
209 callback->Run(indexed_db_info_); | 209 callback->Run(indexed_db_info_); |
210 delete callback; | 210 delete callback; |
211 } | 211 } |
212 | 212 |
213 CannedBrowsingDataIndexedDBHelper::~CannedBrowsingDataIndexedDBHelper() {} | 213 CannedBrowsingDataIndexedDBHelper::~CannedBrowsingDataIndexedDBHelper() {} |
OLD | NEW |