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

Side by Side Diff: content/browser/loader/resource_request_info_impl.cc

Issue 12886022: Implement offline mode behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Setup OfflinePolicy for all started requests. Created 7 years, 8 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 | « content/browser/loader/resource_request_info_impl.h ('k') | content/content_browser.gypi » ('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 #include "content/browser/loader/resource_request_info_impl.h" 5 #include "content/browser/loader/resource_request_info_impl.h"
6 6
7 #include "content/browser/loader/global_routing_id.h"
7 #include "content/browser/worker_host/worker_service_impl.h" 8 #include "content/browser/worker_host/worker_service_impl.h"
8 #include "content/common/net/url_request_user_data.h" 9 #include "content/common/net/url_request_user_data.h"
9 #include "content/public/browser/global_request_id.h" 10 #include "content/public/browser/global_request_id.h"
10 #include "net/url_request/url_request.h" 11 #include "net/url_request/url_request.h"
11 #include "webkit/blob/blob_data.h" 12 #include "webkit/blob/blob_data.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 // ---------------------------------------------------------------------------- 16 // ----------------------------------------------------------------------------
16 // ResourceRequestInfo 17 // ResourceRequestInfo
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 request->SetUserData( 215 request->SetUserData(
215 URLRequestUserData::kUserDataKey, 216 URLRequestUserData::kUserDataKey,
216 new URLRequestUserData(render_process_id, render_view_id)); 217 new URLRequestUserData(render_process_id, render_view_id));
217 } 218 }
218 } 219 }
219 220
220 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const { 221 GlobalRequestID ResourceRequestInfoImpl::GetGlobalRequestID() const {
221 return GlobalRequestID(child_id_, request_id_); 222 return GlobalRequestID(child_id_, request_id_);
222 } 223 }
223 224
225 GlobalRoutingID ResourceRequestInfoImpl::GetGlobalRoutingID() const {
226 return GlobalRoutingID(child_id_, route_id_);
227 }
228
224 void ResourceRequestInfoImpl::set_requested_blob_data( 229 void ResourceRequestInfoImpl::set_requested_blob_data(
225 webkit_blob::BlobData* data) { 230 webkit_blob::BlobData* data) {
226 requested_blob_data_ = data; 231 requested_blob_data_ = data;
227 } 232 }
228 233
229 } // namespace content 234 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698