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

Side by Side Diff: net/url_request/url_request.cc

Issue 385024: Propagate the "first party for cookies" from WebKit through the resource... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Upload before checkin Created 11 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 "net/url_request/url_request.h" 5 #include "net/url_request/url_request.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/singleton.h" 9 #include "base/singleton.h"
10 #include "base/stats_counters.h" 10 #include "base/stats_counters.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 if (!url.is_valid()) { 216 if (!url.is_valid()) {
217 // We handle error cases. 217 // We handle error cases.
218 return true; 218 return true;
219 } 219 }
220 220
221 return IsHandledProtocol(url.scheme()); 221 return IsHandledProtocol(url.scheme());
222 } 222 }
223 223
224 void URLRequest::set_first_party_for_cookies( 224 void URLRequest::set_first_party_for_cookies(
225 const GURL& first_party_for_cookies) { 225 const GURL& first_party_for_cookies) {
226 DCHECK(!is_pending_);
227 first_party_for_cookies_ = first_party_for_cookies; 226 first_party_for_cookies_ = first_party_for_cookies;
228 } 227 }
229 228
230 void URLRequest::set_method(const std::string& method) { 229 void URLRequest::set_method(const std::string& method) {
231 DCHECK(!is_pending_); 230 DCHECK(!is_pending_);
232 method_ = method; 231 method_ = method;
233 } 232 }
234 233
235 void URLRequest::set_referrer(const std::string& referrer) { 234 void URLRequest::set_referrer(const std::string& referrer) {
236 DCHECK(!is_pending_); 235 DCHECK(!is_pending_);
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 void URLRequest::SetUserData(const void* key, UserData* data) { 518 void URLRequest::SetUserData(const void* key, UserData* data) {
520 user_data_[key] = linked_ptr<UserData>(data); 519 user_data_[key] = linked_ptr<UserData>(data);
521 } 520 }
522 521
523 void URLRequest::GetInfoForTracker( 522 void URLRequest::GetInfoForTracker(
524 RequestTracker<URLRequest>::RecentRequestInfo* info) const { 523 RequestTracker<URLRequest>::RecentRequestInfo* info) const {
525 DCHECK(info); 524 DCHECK(info);
526 info->original_url = original_url_; 525 info->original_url = original_url_;
527 info->load_log = load_log_; 526 info->load_log = load_log_;
528 } 527 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698