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

Side by Side Diff: content/test/net/url_request_slow_download_job.cc

Issue 18868005: content: Migrate from googleurl/ includes to url/ ones. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « content/test/net/url_request_failed_job.h ('k') | content/worker/websharedworker_stub.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) 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/test/net/url_request_slow_download_job.h" 5 #include "content/test/net/url_request_slow_download_job.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "googleurl/src/gurl.h"
15 #include "net/base/io_buffer.h" 14 #include "net/base/io_buffer.h"
16 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
17 #include "net/http/http_response_headers.h" 16 #include "net/http/http_response_headers.h"
18 #include "net/url_request/url_request.h" 17 #include "net/url_request/url_request.h"
19 #include "net/url_request/url_request_filter.h" 18 #include "net/url_request/url_request_filter.h"
19 #include "url/gurl.h"
20 20
21 namespace content { 21 namespace content {
22 22
23 const char URLRequestSlowDownloadJob::kUnknownSizeUrl[] = 23 const char URLRequestSlowDownloadJob::kUnknownSizeUrl[] =
24 "http://url.handled.by.slow.download/download-unknown-size"; 24 "http://url.handled.by.slow.download/download-unknown-size";
25 const char URLRequestSlowDownloadJob::kKnownSizeUrl[] = 25 const char URLRequestSlowDownloadJob::kKnownSizeUrl[] =
26 "http://url.handled.by.slow.download/download-known-size"; 26 "http://url.handled.by.slow.download/download-known-size";
27 const char URLRequestSlowDownloadJob::kFinishDownloadUrl[] = 27 const char URLRequestSlowDownloadJob::kFinishDownloadUrl[] =
28 "http://url.handled.by.slow.download/download-finish"; 28 "http://url.handled.by.slow.download/download-finish";
29 const char URLRequestSlowDownloadJob::kErrorDownloadUrl[] = 29 const char URLRequestSlowDownloadJob::kErrorDownloadUrl[] =
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 info->headers = new net::HttpResponseHeaders(raw_headers); 265 info->headers = new net::HttpResponseHeaders(raw_headers);
266 } 266 }
267 267
268 bool URLRequestSlowDownloadJob::GetMimeType(std::string* mime_type) const { 268 bool URLRequestSlowDownloadJob::GetMimeType(std::string* mime_type) const {
269 net::HttpResponseInfo info; 269 net::HttpResponseInfo info;
270 GetResponseInfoConst(&info); 270 GetResponseInfoConst(&info);
271 return info.headers.get() && info.headers->GetMimeType(mime_type); 271 return info.headers.get() && info.headers->GetMimeType(mime_type);
272 } 272 }
273 273
274 } // namespace content 274 } // namespace content
OLDNEW
« no previous file with comments | « content/test/net/url_request_failed_job.h ('k') | content/worker/websharedworker_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698