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

Side by Side Diff: content/browser/loader/resource_loader.h

Issue 15211004: Add histogram to measure the read deferral on crosswebsite navigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | content/browser/loader/resource_loader.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 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 scoped_ptr<net::URLRequest> request_; 120 scoped_ptr<net::URLRequest> request_;
121 scoped_ptr<ResourceHandler> handler_; 121 scoped_ptr<ResourceHandler> handler_;
122 ResourceLoaderDelegate* delegate_; 122 ResourceLoaderDelegate* delegate_;
123 123
124 scoped_refptr<ResourceDispatcherHostLoginDelegate> login_delegate_; 124 scoped_refptr<ResourceDispatcherHostLoginDelegate> login_delegate_;
125 scoped_refptr<SSLClientAuthHandler> ssl_client_auth_handler_; 125 scoped_refptr<SSLClientAuthHandler> ssl_client_auth_handler_;
126 126
127 uint64 last_upload_position_; 127 uint64 last_upload_position_;
128 bool waiting_for_upload_progress_ack_; 128 bool waiting_for_upload_progress_ack_;
129 base::TimeTicks last_upload_ticks_; 129 base::TimeTicks last_upload_ticks_;
130 base::TimeTicks read_deferral_start_time_;
130 131
131 // Indicates that we are in a state of being transferred to a new downstream 132 // Indicates that we are in a state of being transferred to a new downstream
132 // consumer. We are waiting for a notification to complete the transfer, at 133 // consumer. We are waiting for a notification to complete the transfer, at
133 // which point we'll receive a new ResourceHandler. 134 // which point we'll receive a new ResourceHandler.
134 bool is_transferring_; 135 bool is_transferring_;
135 136
136 scoped_ptr<net::ClientCertStore> client_cert_store_; 137 scoped_ptr<net::ClientCertStore> client_cert_store_;
137 138
138 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; 139 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); 141 DISALLOW_COPY_AND_ASSIGN(ResourceLoader);
141 }; 142 };
142 143
143 } // namespace content 144 } // namespace content
144 145
145 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ 146 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/loader/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698