| 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 CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ |
| 6 #define CHROME_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/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "chrome/browser/browser_thread.h" | |
| 11 #include "chrome/browser/content_settings/host_content_settings_map.h" | 10 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 12 #include "chrome/common/notification_registrar.h" | 11 #include "chrome/common/notification_registrar.h" |
| 12 #include "content/browser/browser_thread.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 | 15 |
| 16 class ChromeURLRequestContext; | 16 class ChromeURLRequestContext; |
| 17 class FilePath; | 17 class FilePath; |
| 18 | 18 |
| 19 // An AppCacheService subclass used by the chrome. There is an instance | 19 // An AppCacheService subclass used by the chrome. There is an instance |
| 20 // associated with each Profile. This derivation adds refcounting semantics | 20 // associated with each Profile. This derivation adds refcounting semantics |
| 21 // since a profile has multiple URLRequestContexts which refer to the same | 21 // since a profile has multiple URLRequestContexts which refer to the same |
| 22 // object, and those URLRequestContexts are refcounted independently of the | 22 // object, and those URLRequestContexts are refcounted independently of the |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const NotificationDetails& details); | 62 const NotificationDetails& details); |
| 63 | 63 |
| 64 scoped_refptr<HostContentSettingsMap> host_contents_settings_map_; | 64 scoped_refptr<HostContentSettingsMap> host_contents_settings_map_; |
| 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 // CHROME_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ | 72 #endif // CONTENT_BROWSER_APPCACHE_CHROME_APPCACHE_SERVICE_H_ |
| OLD | NEW |