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

Side by Side Diff: content/browser/renderer_host/resource_dispatcher_host_request_info.h

Issue 7523042: Add a status message "Waiting for extension Foo..." when there's a request (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 bool is_download() const { return is_download_; } 119 bool is_download() const { return is_download_; }
120 void set_is_download(bool download) { is_download_ = download; } 120 void set_is_download(bool download) { is_download_ = download; }
121 121
122 // The number of clients that have called pause on this request. 122 // The number of clients that have called pause on this request.
123 int pause_count() const { return pause_count_; } 123 int pause_count() const { return pause_count_; }
124 void set_pause_count(int count) { pause_count_ = count; } 124 void set_pause_count(int count) { pause_count_ = count; }
125 125
126 // Identifies the type of resource, such as subframe, media, etc. 126 // Identifies the type of resource, such as subframe, media, etc.
127 ResourceType::Type resource_type() const { return resource_type_; } 127 ResourceType::Type resource_type() const { return resource_type_; }
128 128
129 // Returns the last updated state of the load. This is updated periodically
130 // by the ResourceDispatcherHost and tracked here so we don't send out
131 // unnecessary state change notifications.
132 net::LoadState last_load_state() const { return last_load_state_; }
133 void set_last_load_state(net::LoadState s) { last_load_state_ = s; }
134
135 // When there is upload data, this is the byte count of that data. When there 129 // When there is upload data, this is the byte count of that data. When there
136 // is no upload, this will be 0. 130 // is no upload, this will be 0.
137 uint64 upload_size() const { return upload_size_; } 131 uint64 upload_size() const { return upload_size_; }
138 void set_upload_size(uint64 upload_size) { upload_size_ = upload_size; } 132 void set_upload_size(uint64 upload_size) { upload_size_ = upload_size; }
139 133
140 // When we're uploading data, this is the the byte offset into the uploaded 134 // When we're uploading data, this is the the byte offset into the uploaded
141 // data that we've uploaded that we've send an upload progress update about. 135 // data that we've uploaded that we've send an upload progress update about.
142 // The ResourceDispatcherHost will periodically update this value to track 136 // The ResourceDispatcherHost will periodically update this value to track
143 // upload progress and make sure it doesn't sent out duplicate updates. 137 // upload progress and make sure it doesn't sent out duplicate updates.
144 uint64 last_upload_position() const { return last_upload_position_; } 138 uint64 last_upload_position() const { return last_upload_position_; }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 int origin_pid_; 209 int origin_pid_;
216 int request_id_; 210 int request_id_;
217 bool is_main_frame_; 211 bool is_main_frame_;
218 int64 frame_id_; 212 int64 frame_id_;
219 int pending_data_count_; 213 int pending_data_count_;
220 bool is_download_; 214 bool is_download_;
221 bool allow_download_; 215 bool allow_download_;
222 bool has_user_gesture_; 216 bool has_user_gesture_;
223 int pause_count_; 217 int pause_count_;
224 ResourceType::Type resource_type_; 218 ResourceType::Type resource_type_;
225 net::LoadState last_load_state_;
226 uint64 upload_size_; 219 uint64 upload_size_;
227 uint64 last_upload_position_; 220 uint64 last_upload_position_;
228 base::TimeTicks last_upload_ticks_; 221 base::TimeTicks last_upload_ticks_;
229 bool waiting_for_upload_progress_ack_; 222 bool waiting_for_upload_progress_ack_;
230 int memory_cost_; 223 int memory_cost_;
231 scoped_refptr<webkit_blob::BlobData> requested_blob_data_; 224 scoped_refptr<webkit_blob::BlobData> requested_blob_data_;
232 const content::ResourceContext* context_; 225 const content::ResourceContext* context_;
233 226
234 // "Private" data accessible only to ResourceDispatcherHost (use the 227 // "Private" data accessible only to ResourceDispatcherHost (use the
235 // accessors above for consistency). 228 // accessors above for consistency).
236 bool is_paused_; 229 bool is_paused_;
237 bool called_on_response_started_; 230 bool called_on_response_started_;
238 bool has_started_reading_; 231 bool has_started_reading_;
239 int paused_read_bytes_; 232 int paused_read_bytes_;
240 233
241 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); 234 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo);
242 }; 235 };
243 236
244 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _ 237 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698