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

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

Issue 7149013: Remove most of the remaining test dependencies (other than chrome/test). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 "chrome/browser/net/url_request_slow_download_job.h" 5 #include "content/browser/net/url_request_slow_download_job.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/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "net/base/io_buffer.h" 12 #include "net/base/io_buffer.h"
13 #include "net/http/http_response_headers.h" 13 #include "net/http/http_response_headers.h"
14 #include "net/url_request/url_request.h" 14 #include "net/url_request/url_request.h"
15 #include "net/url_request/url_request_filter.h" 15 #include "net/url_request/url_request_filter.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // ParseRawHeaders expects \0 to end each header line. 175 // ParseRawHeaders expects \0 to end each header line.
176 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1)); 176 ReplaceSubstringsAfterOffset(&raw_headers, 0, "\n", std::string("\0", 1));
177 info->headers = new net::HttpResponseHeaders(raw_headers); 177 info->headers = new net::HttpResponseHeaders(raw_headers);
178 } 178 }
179 179
180 bool URLRequestSlowDownloadJob::GetMimeType(std::string* mime_type) const { 180 bool URLRequestSlowDownloadJob::GetMimeType(std::string* mime_type) const {
181 net::HttpResponseInfo info; 181 net::HttpResponseInfo info;
182 GetResponseInfoConst(&info); 182 GetResponseInfoConst(&info);
183 return info.headers && info.headers->GetMimeType(mime_type); 183 return info.headers && info.headers->GetMimeType(mime_type);
184 } 184 }
OLDNEW
« no previous file with comments | « content/browser/net/url_request_slow_download_job.h ('k') | content/browser/net/url_request_slow_http_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698