| 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 WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 private: | 247 private: |
| 248 void OnReadComplete(int result); | 248 void OnReadComplete(int result); |
| 249 | 249 |
| 250 AppCacheStorage* storage_; | 250 AppCacheStorage* storage_; |
| 251 GURL manifest_url_; | 251 GURL manifest_url_; |
| 252 int64 group_id_; | 252 int64 group_id_; |
| 253 int64 response_id_; | 253 int64 response_id_; |
| 254 scoped_ptr<AppCacheResponseReader> reader_; | 254 scoped_ptr<AppCacheResponseReader> reader_; |
| 255 DelegateReferenceVector delegates_; | 255 DelegateReferenceVector delegates_; |
| 256 scoped_refptr<HttpResponseInfoIOBuffer> info_buffer_; | 256 scoped_refptr<HttpResponseInfoIOBuffer> info_buffer_; |
| 257 net::OldCompletionCallbackImpl<ResponseInfoLoadTask> read_callback_; | |
| 258 }; | 257 }; |
| 259 | 258 |
| 260 typedef std::map<int64, ResponseInfoLoadTask*> PendingResponseInfoLoads; | 259 typedef std::map<int64, ResponseInfoLoadTask*> PendingResponseInfoLoads; |
| 261 | 260 |
| 262 DelegateReference* GetDelegateReference(Delegate* delegate) { | 261 DelegateReference* GetDelegateReference(Delegate* delegate) { |
| 263 DelegateReferenceMap::iterator iter = | 262 DelegateReferenceMap::iterator iter = |
| 264 delegate_references_.find(delegate); | 263 delegate_references_.find(delegate); |
| 265 if (iter != delegate_references_.end()) | 264 if (iter != delegate_references_.end()) |
| 266 return iter->second; | 265 return iter->second; |
| 267 return NULL; | 266 return NULL; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences); | 309 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences); |
| 311 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap); | 310 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap); |
| 312 | 311 |
| 313 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); | 312 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); |
| 314 }; | 313 }; |
| 315 | 314 |
| 316 } // namespace appcache | 315 } // namespace appcache |
| 317 | 316 |
| 318 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ | 317 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ |
| 319 | 318 |
| OLD | NEW |