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

Side by Side Diff: webkit/appcache/appcache_url_request_job.cc

Issue 14307012: webkit: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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_update_job.cc ('k') | webkit/appcache/mock_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <vector> 5 #include <vector>
6 6
7 #include "webkit/appcache/appcache_url_request_job.h" 7 #include "webkit/appcache/appcache_url_request_job.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 17 matching lines...) Expand all
28 AppCacheURLRequestJob::AppCacheURLRequestJob( 28 AppCacheURLRequestJob::AppCacheURLRequestJob(
29 net::URLRequest* request, 29 net::URLRequest* request,
30 net::NetworkDelegate* network_delegate, 30 net::NetworkDelegate* network_delegate,
31 AppCacheStorage* storage) 31 AppCacheStorage* storage)
32 : net::URLRequestJob(request, network_delegate), 32 : net::URLRequestJob(request, network_delegate),
33 storage_(storage), 33 storage_(storage),
34 has_been_started_(false), has_been_killed_(false), 34 has_been_started_(false), has_been_killed_(false),
35 delivery_type_(AWAITING_DELIVERY_ORDERS), 35 delivery_type_(AWAITING_DELIVERY_ORDERS),
36 group_id_(0), cache_id_(kNoCacheId), is_fallback_(false), 36 group_id_(0), cache_id_(kNoCacheId), is_fallback_(false),
37 cache_entry_not_found_(false), 37 cache_entry_not_found_(false),
38 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { 38 weak_factory_(this) {
39 DCHECK(storage_); 39 DCHECK(storage_);
40 } 40 }
41 41
42 void AppCacheURLRequestJob::DeliverAppCachedResponse( 42 void AppCacheURLRequestJob::DeliverAppCachedResponse(
43 const GURL& manifest_url, int64 group_id, int64 cache_id, 43 const GURL& manifest_url, int64 group_id, int64 cache_id,
44 const AppCacheEntry& entry, bool is_fallback) { 44 const AppCacheEntry& entry, bool is_fallback) {
45 DCHECK(!has_delivery_orders()); 45 DCHECK(!has_delivery_orders());
46 DCHECK(entry.has_response_id()); 46 DCHECK(entry.has_response_id());
47 delivery_type_ = APPCACHED_DELIVERY; 47 delivery_type_ = APPCACHED_DELIVERY;
48 manifest_url_ = manifest_url; 48 manifest_url_ = manifest_url;
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 return; 301 return;
302 } 302 }
303 303
304 // If multiple ranges are requested, we play dumb and 304 // If multiple ranges are requested, we play dumb and
305 // return the entire response with 200 OK. 305 // return the entire response with 200 OK.
306 if (ranges.size() == 1U) 306 if (ranges.size() == 1U)
307 range_requested_ = ranges[0]; 307 range_requested_ = ranges[0];
308 } 308 }
309 309
310 } // namespace appcache 310 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_update_job.cc ('k') | webkit/appcache/mock_appcache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698