| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 friend class DeleteTask<ChromeAppCacheService>; | 50 friend class DeleteTask<ChromeAppCacheService>; |
| 51 | 51 |
| 52 virtual ~ChromeAppCacheService(); | 52 virtual ~ChromeAppCacheService(); |
| 53 | 53 |
| 54 // AppCachePolicy overrides | 54 // AppCachePolicy overrides |
| 55 virtual bool CanLoadAppCache(const GURL& manifest_url); | 55 virtual bool CanLoadAppCache(const GURL& manifest_url); |
| 56 virtual int CanCreateAppCache(const GURL& manifest_url, | 56 virtual int CanCreateAppCache(const GURL& manifest_url, |
| 57 net::CompletionCallback* callback); | 57 net::CompletionCallback* callback); |
| 58 | 58 |
| 59 // NotificationObserver override | 59 // NotificationObserver override |
| 60 virtual void Observe(NotificationType type, | 60 virtual void Observe(int type, |
| 61 const NotificationSource& source, | 61 const NotificationSource& source, |
| 62 const NotificationDetails& details); | 62 const NotificationDetails& details); |
| 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_ |
| OLD | NEW |