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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 #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/loader/global_routing_id.h"
8 #include "content/browser/loader/resource_message_filter.h" 8 #include "content/browser/loader/resource_message_filter.h"
9 #include "content/browser/worker_host/worker_service_impl.h" 9 #include "content/browser/worker_host/worker_service_impl.h"
10 #include "content/common/net/url_request_user_data.h" 10 #include "content/common/net/url_request_user_data.h"
(...skipping 29 matching lines...) Expand all
40 resource_type == ResourceType::MAIN_FRAME, // is_main_frame 40 resource_type == ResourceType::MAIN_FRAME, // is_main_frame
41 0, // frame_id 41 0, // frame_id
42 false, // parent_is_main_frame 42 false, // parent_is_main_frame
43 0, // parent_frame_id 43 0, // parent_frame_id
44 resource_type, // resource_type 44 resource_type, // resource_type
45 PAGE_TRANSITION_LINK, // transition_type 45 PAGE_TRANSITION_LINK, // transition_type
46 false, // is_download 46 false, // is_download
47 false, // is_stream 47 false, // is_stream
48 true, // allow_download 48 true, // allow_download
49 false, // has_user_gesture 49 false, // has_user_gesture
50 WebKit::WebReferrerPolicyDefault, // referrer_policy 50 blink::WebReferrerPolicyDefault, // referrer_policy
51 context, // context 51 context, // context
52 base::WeakPtr<ResourceMessageFilter>(), // filter 52 base::WeakPtr<ResourceMessageFilter>(), // filter
53 is_async); // is_async 53 is_async); // is_async
54 info->AssociateWithRequest(request); 54 info->AssociateWithRequest(request);
55 } 55 }
56 56
57 // static 57 // static
58 bool ResourceRequestInfo::GetRenderViewForRequest( 58 bool ResourceRequestInfo::GetRenderViewForRequest(
59 const net::URLRequest* request, 59 const net::URLRequest* request,
60 int* render_process_id, 60 int* render_process_id,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool is_main_frame, 92 bool is_main_frame,
93 int64 frame_id, 93 int64 frame_id,
94 bool parent_is_main_frame, 94 bool parent_is_main_frame,
95 int64 parent_frame_id, 95 int64 parent_frame_id,
96 ResourceType::Type resource_type, 96 ResourceType::Type resource_type,
97 PageTransition transition_type, 97 PageTransition transition_type,
98 bool is_download, 98 bool is_download,
99 bool is_stream, 99 bool is_stream,
100 bool allow_download, 100 bool allow_download,
101 bool has_user_gesture, 101 bool has_user_gesture,
102 WebKit::WebReferrerPolicy referrer_policy, 102 blink::WebReferrerPolicy referrer_policy,
103 ResourceContext* context, 103 ResourceContext* context,
104 base::WeakPtr<ResourceMessageFilter> filter, 104 base::WeakPtr<ResourceMessageFilter> filter,
105 bool is_async) 105 bool is_async)
106 : cross_site_handler_(NULL), 106 : cross_site_handler_(NULL),
107 process_type_(process_type), 107 process_type_(process_type),
108 child_id_(child_id), 108 child_id_(child_id),
109 route_id_(route_id), 109 route_id_(route_id),
110 origin_pid_(origin_pid), 110 origin_pid_(origin_pid),
111 request_id_(request_id), 111 request_id_(request_id),
112 is_main_frame_(is_main_frame), 112 is_main_frame_(is_main_frame),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 int64 ResourceRequestInfoImpl::GetParentFrameID() const { 165 int64 ResourceRequestInfoImpl::GetParentFrameID() const {
166 return parent_frame_id_; 166 return parent_frame_id_;
167 } 167 }
168 168
169 ResourceType::Type ResourceRequestInfoImpl::GetResourceType() const { 169 ResourceType::Type ResourceRequestInfoImpl::GetResourceType() const {
170 return resource_type_; 170 return resource_type_;
171 } 171 }
172 172
173 WebKit::WebReferrerPolicy ResourceRequestInfoImpl::GetReferrerPolicy() const { 173 blink::WebReferrerPolicy ResourceRequestInfoImpl::GetReferrerPolicy() const {
174 return referrer_policy_; 174 return referrer_policy_;
175 } 175 }
176 176
177 PageTransition ResourceRequestInfoImpl::GetPageTransition() const { 177 PageTransition ResourceRequestInfoImpl::GetPageTransition() const {
178 return transition_type_; 178 return transition_type_;
179 } 179 }
180 180
181 bool ResourceRequestInfoImpl::HasUserGesture() const { 181 bool ResourceRequestInfoImpl::HasUserGesture() const {
182 return has_user_gesture_; 182 return has_user_gesture_;
183 } 183 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 base::WeakPtr<ResourceMessageFilter> filter) { 243 base::WeakPtr<ResourceMessageFilter> filter) {
244 child_id_ = child_id; 244 child_id_ = child_id;
245 route_id_ = route_id; 245 route_id_ = route_id;
246 origin_pid_ = origin_pid; 246 origin_pid_ = origin_pid;
247 request_id_ = request_id; 247 request_id_ = request_id;
248 frame_id_ = frame_id; 248 frame_id_ = frame_id;
249 filter_ = filter; 249 filter_ = filter;
250 } 250 }
251 251
252 } // namespace content 252 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_request_info_impl.h ('k') | content/browser/loader/resource_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698