| 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 "content/browser/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 "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
| 9 #include "webkit/blob/blob_storage_controller.h" | 9 #include "webkit/blob/blob_storage_controller.h" |
| 10 | 10 |
| 11 using base::UserDataAdapter; | 11 using base::UserDataAdapter; |
| 12 using content::BrowserContext; | 12 using content::BrowserContext; |
| 13 using content::BrowserThread; | 13 using content::BrowserThread; |
| 14 using webkit_blob::BlobStorageController; | 14 using webkit_blob::BlobStorageController; |
| 15 | 15 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 void ChromeBlobStorageContext::DeleteOnCorrectThread() const { | 48 void ChromeBlobStorageContext::DeleteOnCorrectThread() const { |
| 49 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && | 49 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && |
| 50 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { | 50 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
| 51 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 51 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
| 52 return; | 52 return; |
| 53 } | 53 } |
| 54 delete this; | 54 delete this; |
| 55 } | 55 } |
| OLD | NEW |