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

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

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "content/common/child_process_info.h" 13 #include "content/common/child_process_info.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/common/page_transition_types.h" 15 #include "content/public/common/page_transition_types.h"
16 #include "net/base/load_states.h" 16 #include "net/base/load_states.h"
17 #include "net/url_request/url_request.h" 17 #include "net/url_request/url_request.h"
18 #include "webkit/glue/resource_type.h" 18 #include "webkit/glue/resource_type.h"
19 19
20 class CrossSiteResourceHandler; 20 class CrossSiteResourceHandler;
21 class LoginHandler; 21 class LoginHandler;
22 class ResourceDispatcherHost; 22 class ResourceDispatcherHost;
23 class ResourceDispatcherHostLoginDelegate; 23 class ResourceDispatcherHostLoginDelegate;
24 class ResourceHandler; 24 class ResourceHandler;
25 class SSLClientAuthHandler; 25 class SSLClientAuthHandler;
(...skipping 14 matching lines...) Expand all
40 CONTENT_EXPORT ResourceDispatcherHostRequestInfo( 40 CONTENT_EXPORT ResourceDispatcherHostRequestInfo(
41 ResourceHandler* handler, 41 ResourceHandler* handler,
42 ChildProcessInfo::ProcessType process_type, 42 ChildProcessInfo::ProcessType process_type,
43 int child_id, 43 int child_id,
44 int route_id, 44 int route_id,
45 int origin_pid, 45 int origin_pid,
46 int request_id, 46 int request_id,
47 bool is_main_frame, 47 bool is_main_frame,
48 int64 frame_id, 48 int64 frame_id,
49 ResourceType::Type resource_type, 49 ResourceType::Type resource_type,
50 PageTransition::Type transition_type, 50 content::PageTransition transition_type,
51 uint64 upload_size, 51 uint64 upload_size,
52 bool is_download, 52 bool is_download,
53 bool allow_download, 53 bool allow_download,
54 bool has_user_gesture, 54 bool has_user_gesture,
55 const content::ResourceContext* context); 55 const content::ResourceContext* context);
56 virtual ~ResourceDispatcherHostRequestInfo(); 56 virtual ~ResourceDispatcherHostRequestInfo();
57 57
58 // Top-level ResourceHandler servicing this request. 58 // Top-level ResourceHandler servicing this request.
59 ResourceHandler* resource_handler() { return resource_handler_.get(); } 59 ResourceHandler* resource_handler() { return resource_handler_.get(); }
60 60
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool is_download() const { return is_download_; } 127 bool is_download() const { return is_download_; }
128 void set_is_download(bool download) { is_download_ = download; } 128 void set_is_download(bool download) { is_download_ = download; }
129 129
130 // The number of clients that have called pause on this request. 130 // The number of clients that have called pause on this request.
131 int pause_count() const { return pause_count_; } 131 int pause_count() const { return pause_count_; }
132 void set_pause_count(int count) { pause_count_ = count; } 132 void set_pause_count(int count) { pause_count_ = count; }
133 133
134 // Identifies the type of resource, such as subframe, media, etc. 134 // Identifies the type of resource, such as subframe, media, etc.
135 ResourceType::Type resource_type() const { return resource_type_; } 135 ResourceType::Type resource_type() const { return resource_type_; }
136 136
137 PageTransition::Type transition_type() const { return transition_type_; } 137 content::PageTransition transition_type() const { return transition_type_; }
138 138
139 // When there is upload data, this is the byte count of that data. When there 139 // When there is upload data, this is the byte count of that data. When there
140 // is no upload, this will be 0. 140 // is no upload, this will be 0.
141 uint64 upload_size() const { return upload_size_; } 141 uint64 upload_size() const { return upload_size_; }
142 void set_upload_size(uint64 upload_size) { upload_size_ = upload_size; } 142 void set_upload_size(uint64 upload_size) { upload_size_ = upload_size; }
143 143
144 // When we're uploading data, this is the the byte offset into the uploaded 144 // When we're uploading data, this is the the byte offset into the uploaded
145 // data that we've uploaded that we've send an upload progress update about. 145 // data that we've uploaded that we've send an upload progress update about.
146 // The ResourceDispatcherHost will periodically update this value to track 146 // The ResourceDispatcherHost will periodically update this value to track
147 // upload progress and make sure it doesn't sent out duplicate updates. 147 // upload progress and make sure it doesn't sent out duplicate updates.
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 int origin_pid_; 219 int origin_pid_;
220 int request_id_; 220 int request_id_;
221 bool is_main_frame_; 221 bool is_main_frame_;
222 int64 frame_id_; 222 int64 frame_id_;
223 int pending_data_count_; 223 int pending_data_count_;
224 bool is_download_; 224 bool is_download_;
225 bool allow_download_; 225 bool allow_download_;
226 bool has_user_gesture_; 226 bool has_user_gesture_;
227 int pause_count_; 227 int pause_count_;
228 ResourceType::Type resource_type_; 228 ResourceType::Type resource_type_;
229 PageTransition::Type transition_type_; 229 content::PageTransition transition_type_;
230 uint64 upload_size_; 230 uint64 upload_size_;
231 uint64 last_upload_position_; 231 uint64 last_upload_position_;
232 base::TimeTicks last_upload_ticks_; 232 base::TimeTicks last_upload_ticks_;
233 bool waiting_for_upload_progress_ack_; 233 bool waiting_for_upload_progress_ack_;
234 int memory_cost_; 234 int memory_cost_;
235 scoped_refptr<webkit_blob::BlobData> requested_blob_data_; 235 scoped_refptr<webkit_blob::BlobData> requested_blob_data_;
236 const content::ResourceContext* context_; 236 const content::ResourceContext* context_;
237 237
238 // "Private" data accessible only to ResourceDispatcherHost (use the 238 // "Private" data accessible only to ResourceDispatcherHost (use the
239 // accessors above for consistency). 239 // accessors above for consistency).
240 bool is_paused_; 240 bool is_paused_;
241 bool called_on_response_started_; 241 bool called_on_response_started_;
242 bool has_started_reading_; 242 bool has_started_reading_;
243 int paused_read_bytes_; 243 int paused_read_bytes_;
244 244
245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); 245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo);
246 }; 246 };
247 247
248 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _ 248 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698