| 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 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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 |
| 28 // by the backend impl. | 28 // by the backend impl. |
| 29 bool RegisterHost(int host_id); | 29 bool RegisterHost(int host_id); |
| 30 bool UnregisterHost(int host_id); | 30 bool UnregisterHost(int host_id); |
| 31 bool SelectCache(int host_id, | 31 bool SelectCache(int host_id, |
| 32 const GURL& document_url, | 32 const GURL& document_url, |
| 33 const int64 cache_document_was_loaded_from, | 33 const int64 cache_document_was_loaded_from, |
| 34 const GURL& manifest_url); | 34 const GURL& manifest_url); |
| 35 void GetResourceList( |
| 36 int host_id, std::vector<AppCacheResourceInfo>* resource_infos); |
| 35 bool SelectCacheForWorker(int host_id, int parent_process_id, | 37 bool SelectCacheForWorker(int host_id, int parent_process_id, |
| 36 int parent_host_id); | 38 int parent_host_id); |
| 37 bool SelectCacheForSharedWorker(int host_id, int64 appcache_id); | 39 bool SelectCacheForSharedWorker(int host_id, int64 appcache_id); |
| 38 bool MarkAsForeignEntry(int host_id, const GURL& document_url, | 40 bool MarkAsForeignEntry(int host_id, const GURL& document_url, |
| 39 int64 cache_document_was_loaded_from); | 41 int64 cache_document_was_loaded_from); |
| 40 bool GetStatusWithCallback(int host_id, GetStatusCallback* callback, | 42 bool GetStatusWithCallback(int host_id, GetStatusCallback* callback, |
| 41 void* callback_param); | 43 void* callback_param); |
| 42 bool StartUpdateWithCallback(int host_id, StartUpdateCallback* callback, | 44 bool StartUpdateWithCallback(int host_id, StartUpdateCallback* callback, |
| 43 void* callback_param); | 45 void* callback_param); |
| 44 bool SwapCacheWithCallback(int host_id, SwapCacheCallback* callback, | 46 bool SwapCacheWithCallback(int host_id, SwapCacheCallback* callback, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 56 private: | 58 private: |
| 57 AppCacheService* service_; | 59 AppCacheService* service_; |
| 58 AppCacheFrontend* frontend_; | 60 AppCacheFrontend* frontend_; |
| 59 int process_id_; | 61 int process_id_; |
| 60 HostMap hosts_; | 62 HostMap hosts_; |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace | 65 } // namespace |
| 64 | 66 |
| 65 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ | 67 #endif // WEBKIT_APPCACHE_APPCACHE_BACKEND_IMPL_H_ |
| OLD | NEW |