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

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

Issue 9922001: Remove magic iframe load transfer support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resync, resolve Created 8 years, 6 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) 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_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 SSLClientAuthHandler* ssl_client_auth_handler() const { 113 SSLClientAuthHandler* ssl_client_auth_handler() const {
114 return ssl_client_auth_handler_.get(); 114 return ssl_client_auth_handler_.get();
115 } 115 }
116 void set_ssl_client_auth_handler(SSLClientAuthHandler* s); 116 void set_ssl_client_auth_handler(SSLClientAuthHandler* s);
117 117
118 // Identifies the type of process (renderer, plugin, etc.) making the request. 118 // Identifies the type of process (renderer, plugin, etc.) making the request.
119 ProcessType process_type() const { 119 ProcessType process_type() const {
120 return process_type_; 120 return process_type_;
121 } 121 }
122 122
123 // The route_id of pending request can change when it is transferred to a new
124 // page (as in iframe transfer using adoptNode JS API).
125 void set_route_id(int route_id) { route_id_ = route_id; }
126
127 // Number of messages we've sent to the renderer that we haven't gotten an 123 // Number of messages we've sent to the renderer that we haven't gotten an
128 // ACK for. This allows us to avoid having too many messages in flight. 124 // ACK for. This allows us to avoid having too many messages in flight.
129 int pending_data_count() const { return pending_data_count_; } 125 int pending_data_count() const { return pending_data_count_; }
130 void IncrementPendingDataCount() { pending_data_count_++; } 126 void IncrementPendingDataCount() { pending_data_count_++; }
131 void DecrementPendingDataCount() { pending_data_count_--; } 127 void DecrementPendingDataCount() { pending_data_count_--; }
132 128
133 // Downloads are allowed only as a top level request. 129 // Downloads are allowed only as a top level request.
134 bool allow_download() const { return allow_download_; } 130 bool allow_download() const { return allow_download_; }
135 131
136 bool has_user_gesture() const { return has_user_gesture_; } 132 bool has_user_gesture() const { return has_user_gesture_; }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 bool called_on_response_started_; 247 bool called_on_response_started_;
252 bool has_started_reading_; 248 bool has_started_reading_;
253 int paused_read_bytes_; 249 int paused_read_bytes_;
254 250
255 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl); 251 DISALLOW_COPY_AND_ASSIGN(ResourceRequestInfoImpl);
256 }; 252 };
257 253
258 } // namespace content 254 } // namespace content
259 255
260 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_ 256 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_impl.cc ('k') | content/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698