| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "webkit/appcache/appcache_host.h" | 9 #include "webkit/appcache/appcache_host.h" |
| 10 | 10 |
| 11 namespace appcache { | 11 namespace appcache { |
| 12 | 12 |
| 13 class AppCacheService; | 13 class AppCacheService; |
| 14 | 14 |
| 15 class AppCacheBackendImpl { | 15 class AppCacheBackendImpl { |
| 16 public: | 16 public: |
| 17 AppCacheBackendImpl() : service_(NULL), frontend_(NULL), process_id_(0) {} | 17 AppCacheBackendImpl(); |
| 18 ~AppCacheBackendImpl(); | 18 ~AppCacheBackendImpl(); |
| 19 | 19 |
| 20 void Initialize(AppCacheService* service, | 20 void Initialize(AppCacheService* service, |
| 21 AppCacheFrontend* frontend, | 21 AppCacheFrontend* frontend, |
| 22 int process_id); | 22 int process_id); |
| 23 | 23 |
| 24 int process_id() const { return process_id_; } | 24 int process_id() const { return process_id_; } |
| 25 | 25 |
| 26 // Methods to support the AppCacheBackend interface. A false return | 26 // Methods to support the AppCacheBackend interface. A false return |
| 27 // value indicates an invalid host_id and that no action was taken | 27 // value indicates an invalid host_id and that no action was taken |
| (...skipping 30 matching lines...) Expand all Loading... |
| 58 private: | 58 private: |
| 59 AppCacheService* service_; | 59 AppCacheService* service_; |
| 60 AppCacheFrontend* frontend_; | 60 AppCacheFrontend* frontend_; |
| 61 int process_id_; | 61 int process_id_; |
| 62 HostMap hosts_; | 62 HostMap hosts_; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace | 65 } // namespace |
| 66 | 66 |
| 67 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ | 67 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ |
| OLD | NEW |