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

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

Issue 7273081: Upstream android net related code (part 2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool URLRequest::Delegate::CanGetCookies(URLRequest* request) { 103 bool URLRequest::Delegate::CanGetCookies(URLRequest* request) {
104 return true; 104 return true;
105 } 105 }
106 106
107 bool URLRequest::Delegate::CanSetCookie(URLRequest* request, 107 bool URLRequest::Delegate::CanSetCookie(URLRequest* request,
108 const std::string& cookie_line, 108 const std::string& cookie_line,
109 CookieOptions* options) { 109 CookieOptions* options) {
110 return true; 110 return true;
111 } 111 }
112 112
113 void URLRequest::Delegate::OnAutoLogin(URLRequest* request,
114 const std::string& value) {
115 }
116
113 /////////////////////////////////////////////////////////////////////////////// 117 ///////////////////////////////////////////////////////////////////////////////
114 // URLRequest 118 // URLRequest
115 119
116 URLRequest::URLRequest(const GURL& url, Delegate* delegate) 120 URLRequest::URLRequest(const GURL& url, Delegate* delegate)
117 : url_chain_(1, url), 121 : url_chain_(1, url),
118 method_("GET"), 122 method_("GET"),
119 load_flags_(LOAD_NORMAL), 123 load_flags_(LOAD_NORMAL),
120 delegate_(delegate), 124 delegate_(delegate),
121 is_pending_(false), 125 is_pending_(false),
122 redirect_limit_(kMaxRedirects), 126 redirect_limit_(kMaxRedirects),
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 if (found != user_data_.end()) 692 if (found != user_data_.end())
689 return found->second.get(); 693 return found->second.get();
690 return NULL; 694 return NULL;
691 } 695 }
692 696
693 void URLRequest::SetUserData(const void* key, UserData* data) { 697 void URLRequest::SetUserData(const void* key, UserData* data) {
694 user_data_[key] = linked_ptr<UserData>(data); 698 user_data_[key] = linked_ptr<UserData>(data);
695 } 699 }
696 700
697 } // namespace net 701 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698