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 #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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 const content::ResourceContext* resource_context, | 42 const content::ResourceContext* resource_context, |
43 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy); | 43 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy); |
44 | 44 |
45 private: | 45 private: |
46 friend class BrowserThread; | 46 friend class BrowserThread; |
47 friend class DeleteTask<ChromeAppCacheService>; | 47 friend class DeleteTask<ChromeAppCacheService>; |
48 | 48 |
49 virtual ~ChromeAppCacheService(); | 49 virtual ~ChromeAppCacheService(); |
50 | 50 |
51 // AppCachePolicy overrides | 51 // AppCachePolicy overrides |
52 virtual bool CanLoadAppCache(const GURL& manifest_url); | 52 virtual bool CanLoadAppCache(const GURL& manifest_url, |
53 virtual int CanCreateAppCache(const GURL& manifest_url, | 53 const GURL& first_party); |
54 net::CompletionCallback* callback); | 54 virtual bool CanCreateAppCache(const GURL& manifest_url, |
| 55 const GURL& first_party); |
55 | 56 |
56 // NotificationObserver override | 57 // NotificationObserver override |
57 virtual void Observe(int type, | 58 virtual void Observe(int type, |
58 const NotificationSource& source, | 59 const NotificationSource& source, |
59 const NotificationDetails& details); | 60 const NotificationDetails& details); |
60 | 61 |
61 const content::ResourceContext* resource_context_; | 62 const content::ResourceContext* resource_context_; |
62 NotificationRegistrar registrar_; | 63 NotificationRegistrar registrar_; |
63 FilePath cache_path_; | 64 FilePath cache_path_; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService); | 66 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService); |
66 }; | 67 }; |
67 | 68 |
68 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ | 69 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ |
OLD | NEW |