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

Side by Side Diff: content/browser/appcache/chrome_appcache_service.h

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works now Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
6 #define CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 6 #define CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "content/browser/browser_thread.h" 10 #include "content/browser/browser_thread.h"
11 #include "content/common/notification_observer.h" 11 #include "content/common/notification_observer.h"
12 #include "content/common/notification_registrar.h" 12 #include "content/common/notification_registrar.h"
13 #include "webkit/appcache/appcache_policy.h" 13 #include "webkit/appcache/appcache_policy.h"
14 #include "webkit/appcache/appcache_service.h" 14 #include "webkit/appcache/appcache_service.h"
15 #include "webkit/quota/special_storage_policy.h" 15 #include "webkit/quota/special_storage_policy.h"
16 16
17 class FilePath; 17 class FilePath;
18 18
19 namespace content { 19 namespace content {
20 class ResourceContext; 20 class ResourceContext;
21 } 21 }
22 22
23 // An AppCacheService subclass used by the chrome. There is an instance 23 // An AppCacheService subclass used by the chrome. There is an instance
24 // associated with each Profile. This derivation adds refcounting semantics 24 // associated with each BrowserContext. This derivation adds refcounting
25 // since a profile has multiple URLRequestContexts which refer to the same 25 // semantics since a context has multiple URLRequestContexts which refer to the
26 // object, and those URLRequestContexts are refcounted independently of the 26 // same object, and those URLRequestContexts are refcounted independently of the
27 // owning profile. 27 // owning context.
28 // 28 //
29 // All methods, except the ctor, are expected to be called on 29 // All methods, except the ctor, are expected to be called on
30 // the IO thread (unless specifically called out in doc comments). 30 // the IO thread (unless specifically called out in doc comments).
31 class ChromeAppCacheService 31 class ChromeAppCacheService
32 : public base::RefCountedThreadSafe<ChromeAppCacheService, 32 : public base::RefCountedThreadSafe<ChromeAppCacheService,
33 BrowserThread::DeleteOnIOThread>, 33 BrowserThread::DeleteOnIOThread>,
34 public appcache::AppCacheService, 34 public appcache::AppCacheService,
35 public appcache::AppCachePolicy, 35 public appcache::AppCachePolicy,
36 public NotificationObserver { 36 public NotificationObserver {
37 public: 37 public:
(...skipping 25 matching lines...) Expand all
63 63
64 const content::ResourceContext* resource_context_; 64 const content::ResourceContext* resource_context_;
65 NotificationRegistrar registrar_; 65 NotificationRegistrar registrar_;
66 bool clear_local_state_on_exit_; 66 bool clear_local_state_on_exit_;
67 FilePath cache_path_; 67 FilePath cache_path_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService); 69 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService);
70 }; 70 };
71 71
72 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 72 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698