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

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

Issue 5607004: net: Remove typedef net::URLRequestJob URLRequestJob; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 6 #define CHROME_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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 // The approximate in-memory size (bytes) that we credited this request 159 // The approximate in-memory size (bytes) that we credited this request
160 // as consuming in |outstanding_requests_memory_cost_map_|. 160 // as consuming in |outstanding_requests_memory_cost_map_|.
161 int memory_cost() const { return memory_cost_; } 161 int memory_cost() const { return memory_cost_; }
162 void set_memory_cost(int cost) { memory_cost_ = cost; } 162 void set_memory_cost(int cost) { memory_cost_ = cost; }
163 163
164 int host_renderer_id() const { return host_renderer_id_; } 164 int host_renderer_id() const { return host_renderer_id_; }
165 int host_render_view_id() const { return host_render_view_id_; } 165 int host_render_view_id() const { return host_render_view_id_; }
166 166
167 // We hold a reference to the requested blob data to ensure it doesn't 167 // We hold a reference to the requested blob data to ensure it doesn't
168 // get finally released prior to the URLRequestJob being started. 168 // get finally released prior to the net::URLRequestJob being started.
169 webkit_blob::BlobData* requested_blob_data() const { 169 webkit_blob::BlobData* requested_blob_data() const {
170 return requested_blob_data_.get(); 170 return requested_blob_data_.get();
171 } 171 }
172 void set_requested_blob_data(webkit_blob::BlobData* data); 172 void set_requested_blob_data(webkit_blob::BlobData* data);
173 173
174 private: 174 private:
175 friend class ResourceDispatcherHost; 175 friend class ResourceDispatcherHost;
176 176
177 // Request is temporarily not handling network data. Should be used only 177 // Request is temporarily not handling network data. Should be used only
178 // by the ResourceDispatcherHost, not the event handlers (accessors are 178 // by the ResourceDispatcherHost, not the event handlers (accessors are
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 // Contains the id of the host renderer. 240 // Contains the id of the host renderer.
241 int host_renderer_id_; 241 int host_renderer_id_;
242 // Contains the id of the host render view. 242 // Contains the id of the host render view.
243 int host_render_view_id_; 243 int host_render_view_id_;
244 244
245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo); 245 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostRequestInfo);
246 }; 246 };
247 247
248 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_ 248 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698