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

Side by Side Diff: chrome/browser/automation/url_request_mock_http_job.cc

Issue 20378: Reduce the amount of included header files. Vast change like in "Oh God! This... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/automation/url_request_mock_http_job.h" 5 #include "chrome/browser/automation/url_request_mock_http_job.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
11 #include "net/http/http_response_headers.h"
11 #include "net/url_request/url_request_filter.h" 12 #include "net/url_request/url_request_filter.h"
12 13
13 static const char kMockHostname[] = "mock.http"; 14 static const char kMockHostname[] = "mock.http";
14 static const wchar_t kMockHeaderFileSuffix[] = L".mock-http-headers"; 15 static const wchar_t kMockHeaderFileSuffix[] = L".mock-http-headers";
15 16
16 std::wstring URLRequestMockHTTPJob::base_path_ = L""; 17 std::wstring URLRequestMockHTTPJob::base_path_ = L"";
17 18
18 /* static */ 19 /* static */
19 URLRequestJob* URLRequestMockHTTPJob::Factory(URLRequest* request, 20 URLRequestJob* URLRequestMockHTTPJob::Factory(URLRequest* request,
20 const std::string& scheme) { 21 const std::string& scheme) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 GetResponseInfo(&info); 77 GetResponseInfo(&info);
77 return info.headers && info.headers->GetMimeType(mime_type); 78 return info.headers && info.headers->GetMimeType(mime_type);
78 } 79 }
79 80
80 bool URLRequestMockHTTPJob::GetCharset(std::string* charset) { 81 bool URLRequestMockHTTPJob::GetCharset(std::string* charset) {
81 net::HttpResponseInfo info; 82 net::HttpResponseInfo info;
82 GetResponseInfo(&info); 83 GetResponseInfo(&info);
83 return info.headers && info.headers->GetCharset(charset); 84 return info.headers && info.headers->GetCharset(charset);
84 } 85 }
85 86
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698