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_indexed_db_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_indexed_db_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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "chrome/browser/browsing_data_helper.h" | 15 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/indexed_db_context.h" | 18 #include "content/public/browser/indexed_db_context.h" |
19 #include "webkit/database/database_util.h" | 19 #include "webkit/database/database_util.h" |
20 #include "webkit/glue/webkit_glue.h" | 20 #include "webkit/glue/webkit_glue.h" |
21 | 21 |
22 using content::BrowserContext; | 22 using content::BrowserContext; |
23 using content::BrowserThread; | 23 using content::BrowserThread; |
24 using content::IndexedDBContext; | 24 using content::IndexedDBContext; |
25 using webkit_database::DatabaseUtil; | 25 using webkit_database::DatabaseUtil; |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 } | 254 } |
255 | 255 |
256 void CannedBrowsingDataIndexedDBHelper::NotifyInUIThread() { | 256 void CannedBrowsingDataIndexedDBHelper::NotifyInUIThread() { |
257 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 257 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
258 DCHECK(is_fetching_); | 258 DCHECK(is_fetching_); |
259 | 259 |
260 completion_callback_.Run(indexed_db_info_); | 260 completion_callback_.Run(indexed_db_info_); |
261 completion_callback_.Reset(); | 261 completion_callback_.Reset(); |
262 is_fetching_ = false; | 262 is_fetching_ = false; |
263 } | 263 } |
OLD | NEW |