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

Side by Side Diff: net/http/http_cache.cc

Issue 42013: Slight code change to make some global variables const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « net/base/telnet_server.h ('k') | net/http/http_cache_unittest.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "net/http/http_cache.h" 5 #include "net/http/http_cache.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 HttpResponseInfo response_; 313 HttpResponseInfo response_;
314 HttpResponseInfo auth_response_; 314 HttpResponseInfo auth_response_;
315 std::string cache_key_; 315 std::string cache_key_;
316 Mode mode_; 316 Mode mode_;
317 scoped_refptr<IOBuffer> read_buf_; 317 scoped_refptr<IOBuffer> read_buf_;
318 int read_offset_; 318 int read_offset_;
319 int effective_load_flags_; 319 int effective_load_flags_;
320 uint64 final_upload_progress_; 320 uint64 final_upload_progress_;
321 CompletionCallbackImpl<Transaction> network_info_callback_; 321 CompletionCallbackImpl<Transaction> network_info_callback_;
322 CompletionCallbackImpl<Transaction> network_read_callback_; 322 CompletionCallbackImpl<Transaction> network_read_callback_;
323 scoped_refptr<CancelableCompletionCallback<Transaction> > cache_read_callback_ ; 323 scoped_refptr<CancelableCompletionCallback<Transaction> >
324 cache_read_callback_;
324 }; 325 };
325 326
326 HttpCache::Transaction::~Transaction() { 327 HttpCache::Transaction::~Transaction() {
327 if (!revoked()) { 328 if (!revoked()) {
328 if (entry_) { 329 if (entry_) {
329 cache_->DoneWithEntry(entry_, this); 330 cache_->DoneWithEntry(entry_, this);
330 } else { 331 } else {
331 cache_->RemovePendingTransaction(this); 332 cache_->RemovePendingTransaction(this);
332 } 333 }
333 } 334 }
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 1453
1453 entry->pending_queue.erase(entry->pending_queue.begin()); 1454 entry->pending_queue.erase(entry->pending_queue.begin());
1454 1455
1455 AddTransactionToEntry(entry, next); 1456 AddTransactionToEntry(entry, next);
1456 } 1457 }
1457 1458
1458 //----------------------------------------------------------------------------- 1459 //-----------------------------------------------------------------------------
1459 1460
1460 } // namespace net 1461 } // namespace net
1461 1462
OLDNEW
« no previous file with comments | « net/base/telnet_server.h ('k') | net/http/http_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698