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

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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 27 matching lines...) Expand all
38 : public base::RefCountedThreadSafe< 38 : public base::RefCountedThreadSafe<
39 ChromeAppCacheService, content::BrowserThread::DeleteOnIOThread>, 39 ChromeAppCacheService, content::BrowserThread::DeleteOnIOThread>,
40 NON_EXPORTED_BASE(public appcache::AppCacheService), 40 NON_EXPORTED_BASE(public appcache::AppCacheService),
41 NON_EXPORTED_BASE(public appcache::AppCachePolicy), 41 NON_EXPORTED_BASE(public appcache::AppCachePolicy),
42 public content::NotificationObserver { 42 public content::NotificationObserver {
43 public: 43 public:
44 explicit ChromeAppCacheService(quota::QuotaManagerProxy* proxy); 44 explicit ChromeAppCacheService(quota::QuotaManagerProxy* proxy);
45 45
46 void InitializeOnIOThread( 46 void InitializeOnIOThread(
47 const FilePath& cache_path, // may be empty to use in-memory structures 47 const FilePath& cache_path, // may be empty to use in-memory structures
48 const content::ResourceContext* resource_context, 48 content::ResourceContext* resource_context,
49 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy); 49 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy);
50 50
51 private: 51 private:
52 friend class base::RefCountedThreadSafe< 52 friend class base::RefCountedThreadSafe<
53 ChromeAppCacheService, 53 ChromeAppCacheService,
54 content::BrowserThread::DeleteOnIOThread>; 54 content::BrowserThread::DeleteOnIOThread>;
55 friend class content::BrowserThread; 55 friend class content::BrowserThread;
56 friend class base::DeleteHelper<ChromeAppCacheService>; 56 friend class base::DeleteHelper<ChromeAppCacheService>;
57 57
58 virtual ~ChromeAppCacheService(); 58 virtual ~ChromeAppCacheService();
59 59
60 // AppCachePolicy overrides 60 // AppCachePolicy overrides
61 virtual bool CanLoadAppCache(const GURL& manifest_url, 61 virtual bool CanLoadAppCache(const GURL& manifest_url,
62 const GURL& first_party) OVERRIDE; 62 const GURL& first_party) OVERRIDE;
63 virtual bool CanCreateAppCache(const GURL& manifest_url, 63 virtual bool CanCreateAppCache(const GURL& manifest_url,
64 const GURL& first_party) OVERRIDE; 64 const GURL& first_party) OVERRIDE;
65 65
66 // content::NotificationObserver override 66 // content::NotificationObserver override
67 virtual void Observe(int type, 67 virtual void Observe(int type,
68 const content::NotificationSource& source, 68 const content::NotificationSource& source,
69 const content::NotificationDetails& details) OVERRIDE; 69 const content::NotificationDetails& details) OVERRIDE;
70 70
71 const content::ResourceContext* resource_context_; 71 content::ResourceContext* resource_context_;
72 content::NotificationRegistrar registrar_; 72 content::NotificationRegistrar registrar_;
73 FilePath cache_path_; 73 FilePath cache_path_;
74 74
75 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService); 75 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService);
76 }; 76 };
77 77
78 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ 78 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | content/browser/appcache/chrome_appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698