| 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/appcache/chrome_appcache_service.h" | 5 #include "content/browser/appcache/chrome_appcache_service.h" |
| 6 | 6 |
| 7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
| 10 #include "chrome/browser/net/chrome_url_request_context.h" | 10 #include "chrome/browser/net/chrome_url_request_context.h" |
| 11 #include "chrome/common/chrome_constants.h" | 11 #include "chrome/common/chrome_constants.h" |
| 12 #include "chrome/common/notification_service.h" | 12 #include "content/common/notification_service.h" |
| 13 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
| 14 #include "webkit/appcache/appcache_thread.h" | 14 #include "webkit/appcache/appcache_thread.h" |
| 15 | 15 |
| 16 static bool has_initialized_thread_ids; | 16 static bool has_initialized_thread_ids; |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Used to defer deleting of local storage until the destructor has finished. | 20 // Used to defer deleting of local storage until the destructor has finished. |
| 21 void DeleteLocalStateOnIOThread(FilePath cache_path) { | 21 void DeleteLocalStateOnIOThread(FilePath cache_path) { |
| 22 // Post the actual deletion to the DB thread to ensure it happens after the | 22 // Post the actual deletion to the DB thread to ensure it happens after the |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const tracked_objects::Location& from_here, | 128 const tracked_objects::Location& from_here, |
| 129 Task* task) { | 129 Task* task) { |
| 130 return BrowserThread::PostTask(ToBrowserThreadID(id), from_here, task); | 130 return BrowserThread::PostTask(ToBrowserThreadID(id), from_here, task); |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool AppCacheThread::CurrentlyOn(int id) { | 133 bool AppCacheThread::CurrentlyOn(int id) { |
| 134 return BrowserThread::CurrentlyOn(ToBrowserThreadID(id)); | 134 return BrowserThread::CurrentlyOn(ToBrowserThreadID(id)); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace appcache | 137 } // namespace appcache |
| OLD | NEW |