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/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 friend class base::RefCountedThreadSafe< | 51 friend class base::RefCountedThreadSafe< |
52 ChromeAppCacheService, | 52 ChromeAppCacheService, |
53 content::BrowserThread::DeleteOnIOThread>; | 53 content::BrowserThread::DeleteOnIOThread>; |
54 friend class content::BrowserThread; | 54 friend class content::BrowserThread; |
55 friend class DeleteTask<ChromeAppCacheService>; | 55 friend class DeleteTask<ChromeAppCacheService>; |
56 | 56 |
57 virtual ~ChromeAppCacheService(); | 57 virtual ~ChromeAppCacheService(); |
58 | 58 |
59 // AppCachePolicy overrides | 59 // AppCachePolicy overrides |
60 virtual bool CanLoadAppCache(const GURL& manifest_url, | 60 virtual bool CanLoadAppCache(const GURL& manifest_url, |
61 const GURL& first_party); | 61 const GURL& first_party) OVERRIDE; |
62 virtual bool CanCreateAppCache(const GURL& manifest_url, | 62 virtual bool CanCreateAppCache(const GURL& manifest_url, |
63 const GURL& first_party); | 63 const GURL& first_party) OVERRIDE; |
64 | 64 |
65 // content::NotificationObserver override | 65 // content::NotificationObserver override |
66 virtual void Observe(int type, | 66 virtual void Observe(int type, |
67 const content::NotificationSource& source, | 67 const content::NotificationSource& source, |
68 const content::NotificationDetails& details); | 68 const content::NotificationDetails& details) OVERRIDE; |
69 | 69 |
70 const content::ResourceContext* resource_context_; | 70 const content::ResourceContext* resource_context_; |
71 content::NotificationRegistrar registrar_; | 71 content::NotificationRegistrar registrar_; |
72 FilePath cache_path_; | 72 FilePath cache_path_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService); | 74 DISALLOW_COPY_AND_ASSIGN(ChromeAppCacheService); |
75 }; | 75 }; |
76 | 76 |
77 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ | 77 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ |
OLD | NEW |