Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Side by Side Diff: webkit/appcache/appcache_storage.h

Issue 8991001: base::Bind: Convert most of webkit/appcache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix 2. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/appcache_service_unittest.cc ('k') | webkit/appcache/appcache_storage.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_service_unittest.cc ('k') | webkit/appcache/appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698