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

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

Issue 506523002: net : Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 bool vary_mismatch_; // The request doesn't match the stored vary data. 431 bool vary_mismatch_; // The request doesn't match the stored vary data.
432 bool couldnt_conditionalize_request_; 432 bool couldnt_conditionalize_request_;
433 bool bypass_lock_for_test_; // A test is exercising the cache lock. 433 bool bypass_lock_for_test_; // A test is exercising the cache lock.
434 scoped_refptr<IOBuffer> read_buf_; 434 scoped_refptr<IOBuffer> read_buf_;
435 int io_buf_len_; 435 int io_buf_len_;
436 int read_offset_; 436 int read_offset_;
437 int effective_load_flags_; 437 int effective_load_flags_;
438 int write_len_; 438 int write_len_;
439 scoped_ptr<PartialData> partial_; // We are dealing with range requests. 439 scoped_ptr<PartialData> partial_; // We are dealing with range requests.
440 UploadProgress final_upload_progress_; 440 UploadProgress final_upload_progress_;
441 base::WeakPtrFactory<Transaction> weak_factory_;
442 CompletionCallback io_callback_;
443 441
444 // Members used to track data for histograms. 442 // Members used to track data for histograms.
445 TransactionPattern transaction_pattern_; 443 TransactionPattern transaction_pattern_;
446 base::TimeTicks entry_lock_waiting_since_; 444 base::TimeTicks entry_lock_waiting_since_;
447 base::TimeTicks first_cache_access_since_; 445 base::TimeTicks first_cache_access_since_;
448 base::TimeTicks send_request_since_; 446 base::TimeTicks send_request_since_;
449 447
450 int64 total_received_bytes_; 448 int64 total_received_bytes_;
451 449
452 // Load timing information for the last network request, if any. Set in the 450 // Load timing information for the last network request, if any. Set in the
453 // 304 and 206 response cases, as the network transaction may be destroyed 451 // 304 and 206 response cases, as the network transaction may be destroyed
454 // before the caller requests load timing information. 452 // before the caller requests load timing information.
455 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_; 453 scoped_ptr<LoadTimingInfo> old_network_trans_load_timing_;
456 454
457 // The helper object to use to create WebSocketHandshakeStreamBase 455 // The helper object to use to create WebSocketHandshakeStreamBase
458 // objects. Only relevant when establishing a WebSocket connection. 456 // objects. Only relevant when establishing a WebSocket connection.
459 // This is passed to the underlying network transaction. It is stored here in 457 // This is passed to the underlying network transaction. It is stored here in
460 // case the transaction does not exist yet. 458 // case the transaction does not exist yet.
461 WebSocketHandshakeStreamBase::CreateHelper* 459 WebSocketHandshakeStreamBase::CreateHelper*
462 websocket_handshake_stream_base_create_helper_; 460 websocket_handshake_stream_base_create_helper_;
463 461
464 BeforeNetworkStartCallback before_network_start_callback_; 462 BeforeNetworkStartCallback before_network_start_callback_;
465 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 463 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
466 464
465 base::WeakPtrFactory<Transaction> weak_factory_;
466 CompletionCallback io_callback_;
467
467 DISALLOW_COPY_AND_ASSIGN(Transaction); 468 DISALLOW_COPY_AND_ASSIGN(Transaction);
468 }; 469 };
469 470
470 } // namespace net 471 } // namespace net
471 472
472 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 473 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698