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

Side by Side Diff: chrome/browser/policy/device_management_service.cc

Issue 6166010: net: Remove typedef net::URLRequestStatus URLRequestStatus; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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) 2010 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 "chrome/browser/policy/device_management_service.h" 5 #include "chrome/browser/policy/device_management_service.h"
6 6
7 #include "chrome/browser/browser_thread.h" 7 #include "chrome/browser/browser_thread.h"
8 #include "net/base/cookie_monster.h" 8 #include "net/base/cookie_monster.h"
9 #include "net/base/host_resolver.h" 9 #include "net/base/host_resolver.h"
10 #include "net/base/load_flags.h" 10 #include "net/base/load_flags.h"
11 #include "net/base/ssl_config_service_defaults.h" 11 #include "net/base/ssl_config_service_defaults.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 net::LOAD_DISABLE_CACHE); 167 net::LOAD_DISABLE_CACHE);
168 fetcher->set_request_context(request_context_getter_.get()); 168 fetcher->set_request_context(request_context_getter_.get());
169 job->ConfigureRequest(fetcher); 169 job->ConfigureRequest(fetcher);
170 pending_jobs_[fetcher] = job; 170 pending_jobs_[fetcher] = job;
171 fetcher->Start(); 171 fetcher->Start();
172 } 172 }
173 173
174 void DeviceManagementService::OnURLFetchComplete( 174 void DeviceManagementService::OnURLFetchComplete(
175 const URLFetcher* source, 175 const URLFetcher* source,
176 const GURL& url, 176 const GURL& url,
177 const URLRequestStatus& status, 177 const net::URLRequestStatus& status,
178 int response_code, 178 int response_code,
179 const ResponseCookies& cookies, 179 const ResponseCookies& cookies,
180 const std::string& data) { 180 const std::string& data) {
181 JobFetcherMap::iterator entry(pending_jobs_.find(source)); 181 JobFetcherMap::iterator entry(pending_jobs_.find(source));
182 if (entry != pending_jobs_.end()) { 182 if (entry != pending_jobs_.end()) {
183 DeviceManagementJob* job = entry->second; 183 DeviceManagementJob* job = entry->second;
184 job->HandleResponse(status, response_code, cookies, data); 184 job->HandleResponse(status, response_code, cookies, data);
185 pending_jobs_.erase(entry); 185 pending_jobs_.erase(entry);
186 } else { 186 } else {
187 NOTREACHED() << "Callback from foreign URL fetcher"; 187 NOTREACHED() << "Callback from foreign URL fetcher";
188 } 188 }
189 delete source; 189 delete source;
190 } 190 }
191 191
192 } // namespace policy 192 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/device_management_backend_impl.cc ('k') | chrome/browser/policy/device_management_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698