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 "content/browser/fileapi/chrome_blob_storage_context.h" | 5 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/guid.h" | 8 #include "base/guid.h" |
9 #include "content/public/browser/blob_handle.h" | 9 #include "content/public/browser/blob_handle.h" |
10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
12 #include "webkit/browser/blob/blob_data_handle.h" | 12 #include "storage/browser/blob/blob_data_handle.h" |
13 #include "webkit/browser/blob/blob_storage_context.h" | 13 #include "storage/browser/blob/blob_storage_context.h" |
14 | 14 |
15 using base::UserDataAdapter; | 15 using base::UserDataAdapter; |
16 using storage::BlobStorageContext; | 16 using storage::BlobStorageContext; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 const char kBlobStorageContextKeyName[] = "content_blob_storage_context"; | 22 const char kBlobStorageContextKeyName[] = "content_blob_storage_context"; |
23 | 23 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 void ChromeBlobStorageContext::DeleteOnCorrectThread() const { | 89 void ChromeBlobStorageContext::DeleteOnCorrectThread() const { |
90 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && | 90 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && |
91 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { | 91 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
92 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 92 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
93 return; | 93 return; |
94 } | 94 } |
95 delete this; | 95 delete this; |
96 } | 96 } |
97 | 97 |
98 } // namespace content | 98 } // namespace content |
OLD | NEW |