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

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

Issue 6995013: More progress towards removing content settings code from the content layer. We can't use Cookie... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments and sync Created 9 years, 7 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 | « net/url_request/url_request.h ('k') | net/url_request/url_request_http_job.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/stats_counters.h" 10 #include "base/metrics/stats_counters.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 SSLCertRequestInfo* cert_request_info) { 93 SSLCertRequestInfo* cert_request_info) {
94 request->ContinueWithCertificate(NULL); 94 request->ContinueWithCertificate(NULL);
95 } 95 }
96 96
97 void URLRequest::Delegate::OnSSLCertificateError(URLRequest* request, 97 void URLRequest::Delegate::OnSSLCertificateError(URLRequest* request,
98 int cert_error, 98 int cert_error,
99 X509Certificate* cert) { 99 X509Certificate* cert) {
100 request->Cancel(); 100 request->Cancel();
101 } 101 }
102 102
103 void URLRequest::Delegate::OnGetCookies(URLRequest* request, 103 bool URLRequest::Delegate::CanGetCookies(URLRequest* request) {
104 bool blocked_by_policy) { 104 return true;
105 } 105 }
106 106
107 void URLRequest::Delegate::OnSetCookie(URLRequest* request, 107 bool URLRequest::Delegate::CanSetCookie(URLRequest* request,
108 const std::string& cookie_line, 108 const std::string& cookie_line,
109 const CookieOptions& options, 109 CookieOptions* options) {
110 bool blocked_by_policy) { 110 return true;
111 } 111 }
112 112
113 /////////////////////////////////////////////////////////////////////////////// 113 ///////////////////////////////////////////////////////////////////////////////
114 // URLRequest 114 // URLRequest
115 115
116 URLRequest::URLRequest(const GURL& url, Delegate* delegate) 116 URLRequest::URLRequest(const GURL& url, Delegate* delegate)
117 : url_chain_(1, url), 117 : url_chain_(1, url),
118 method_("GET"), 118 method_("GET"),
119 load_flags_(LOAD_NORMAL), 119 load_flags_(LOAD_NORMAL),
120 delegate_(delegate), 120 delegate_(delegate),
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 if (found != user_data_.end()) 684 if (found != user_data_.end())
685 return found->second.get(); 685 return found->second.get();
686 return NULL; 686 return NULL;
687 } 687 }
688 688
689 void URLRequest::SetUserData(const void* key, UserData* data) { 689 void URLRequest::SetUserData(const void* key, UserData* data) {
690 user_data_[key] = linked_ptr<UserData>(data); 690 user_data_[key] = linked_ptr<UserData>(data);
691 } 691 }
692 692
693 } // namespace net 693 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request.h ('k') | net/url_request/url_request_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698