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

Side by Side Diff: net/http/http_cache_transaction.h

Issue 10829069: Http cache: Make sure that issuing a byte range request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « no previous file | net/http/http_cache_transaction.cc » ('j') | net/http/http_cache_transaction.cc » ('J')
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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 void DoomPartialEntry(bool delete_object); 319 void DoomPartialEntry(bool delete_object);
320 320
321 // Performs the needed work after receiving data from the network, when 321 // Performs the needed work after receiving data from the network, when
322 // working with range requests. 322 // working with range requests.
323 int DoPartialNetworkReadCompleted(int result); 323 int DoPartialNetworkReadCompleted(int result);
324 324
325 // Performs the needed work after receiving data from the cache, when 325 // Performs the needed work after receiving data from the cache, when
326 // working with range requests. 326 // working with range requests.
327 int DoPartialCacheReadCompleted(int result); 327 int DoPartialCacheReadCompleted(int result);
328 328
329 // Restarts this transaction after deleting the cached data. It is meant to
330 // be used when the current request cannot be fulfilled due to conflicts
331 // between the byte range request and the cached entry.
332 int DoRestartPartialRequest();
333
329 // Returns true if we should bother attempting to resume this request if it 334 // Returns true if we should bother attempting to resume this request if it
330 // is aborted while in progress. If |has_data| is true, the size of the stored 335 // is aborted while in progress. If |has_data| is true, the size of the stored
331 // data is considered for the result. 336 // data is considered for the result.
332 bool CanResume(bool has_data); 337 bool CanResume(bool has_data);
333 338
334 // Called to signal completion of asynchronous IO. 339 // Called to signal completion of asynchronous IO.
335 void OnIOComplete(int result); 340 void OnIOComplete(int result);
336 341
337 State next_state_; 342 State next_state_;
338 const HttpRequestInfo* request_; 343 const HttpRequestInfo* request_;
(...skipping 30 matching lines...) Expand all
369 int write_len_; 374 int write_len_;
370 scoped_ptr<PartialData> partial_; // We are dealing with range requests. 375 scoped_ptr<PartialData> partial_; // We are dealing with range requests.
371 uint64 final_upload_progress_; 376 uint64 final_upload_progress_;
372 base::WeakPtrFactory<Transaction> weak_factory_; 377 base::WeakPtrFactory<Transaction> weak_factory_;
373 CompletionCallback io_callback_; 378 CompletionCallback io_callback_;
374 }; 379 };
375 380
376 } // namespace net 381 } // namespace net
377 382
378 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 383 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | net/http/http_cache_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698