Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: content/browser/appcache/chrome_appcache_service.cc

Issue 10068037: RefCounted types should not have public destructors, content/browser part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MSVC fixes Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/appcache/chrome_appcache_service.h ('k') | content/browser/browser_thread_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/chrome_appcache_service.cc
diff --git a/content/browser/appcache/chrome_appcache_service.cc b/content/browser/appcache/chrome_appcache_service.cc
index 6fa5ebc613d5bbb366d3fbbd60578c2b8f9084c5..05ebdf4628f2f617f2282390e8950cf37ec42764 100644
--- a/content/browser/appcache/chrome_appcache_service.cc
+++ b/content/browser/appcache/chrome_appcache_service.cc
@@ -39,18 +39,6 @@ void ChromeAppCacheService::InitializeOnIOThread(
set_special_storage_policy(special_storage_policy);
}
-ChromeAppCacheService::~ChromeAppCacheService() {
-}
-
-void ChromeAppCacheService::DeleteOnCorrectThread() const {
- if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) &&
- !BrowserThread::CurrentlyOn(BrowserThread::IO)) {
- BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this);
- return;
- }
- delete this;
-}
-
bool ChromeAppCacheService::CanLoadAppCache(const GURL& manifest_url,
const GURL& first_party) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -65,3 +53,14 @@ bool ChromeAppCacheService::CanCreateAppCache(
return content::GetContentClient()->browser()->AllowAppCache(
manifest_url, first_party, resource_context_);
}
+
+ChromeAppCacheService::~ChromeAppCacheService() {}
+
+void ChromeAppCacheService::DeleteOnCorrectThread() const {
+ if (BrowserThread::IsMessageLoopValid(BrowserThread::IO) &&
+ !BrowserThread::CurrentlyOn(BrowserThread::IO)) {
+ BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, this);
+ return;
+ }
+ delete this;
+}
« no previous file with comments | « content/browser/appcache/chrome_appcache_service.h ('k') | content/browser/browser_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698