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/appcache/chrome_appcache_service.h" | 5 #include "content/browser/appcache/chrome_appcache_service.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
10 #include "content/public/browser/resource_context.h" | 10 #include "content/public/browser/resource_context.h" |
11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
12 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
13 #include "webkit/appcache/appcache_storage_impl.h" | 13 #include "webkit/appcache/appcache_storage_impl.h" |
14 #include "webkit/quota/quota_manager.h" | 14 #include "webkit/browser/quota/quota_manager.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 ChromeAppCacheService::ChromeAppCacheService( | 18 ChromeAppCacheService::ChromeAppCacheService( |
19 quota::QuotaManagerProxy* quota_manager_proxy) | 19 quota::QuotaManagerProxy* quota_manager_proxy) |
20 : AppCacheService(quota_manager_proxy), | 20 : AppCacheService(quota_manager_proxy), |
21 resource_context_(NULL) { | 21 resource_context_(NULL) { |
22 } | 22 } |
23 | 23 |
24 void ChromeAppCacheService::InitializeOnIOThread( | 24 void ChromeAppCacheService::InitializeOnIOThread( |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 void ChromeAppCacheService::DeleteOnCorrectThread() const { | 69 void ChromeAppCacheService::DeleteOnCorrectThread() const { |
70 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && | 70 if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) && |
71 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { | 71 !BrowserThread::CurrentlyOn(BrowserThread::IO)) { |
72 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); | 72 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this); |
73 return; | 73 return; |
74 } | 74 } |
75 delete this; | 75 delete this; |
76 } | 76 } |
77 | 77 |
78 } // namespace content | 78 } // namespace content |
OLD | NEW |