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

Side by Side Diff: content/browser/net/url_request_mock_http_job.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // A net::URLRequestJob class that pulls the content and http headers from disk. 5 // A net::URLRequestJob class that pulls the content and http headers from disk.
6 6
7 #ifndef CONTENT_BROWSER_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ 7 #ifndef CONTENT_BROWSER_NET_URL_REQUEST_MOCK_HTTP_JOB_H_
8 #define CONTENT_BROWSER_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ 8 #define CONTENT_BROWSER_NET_URL_REQUEST_MOCK_HTTP_JOB_H_
9 #pragma once 9 #pragma once
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "content/common/content_export.h"
13 #include "net/url_request/url_request_file_job.h" 14 #include "net/url_request/url_request_file_job.h"
14 15
15 class FilePath; 16 class FilePath;
16 17
17 class URLRequestMockHTTPJob : public net::URLRequestFileJob { 18 class CONTENT_EXPORT URLRequestMockHTTPJob : public net::URLRequestFileJob {
18 public: 19 public:
19 URLRequestMockHTTPJob(net::URLRequest* request, const FilePath& file_path); 20 URLRequestMockHTTPJob(net::URLRequest* request, const FilePath& file_path);
20 21
21 virtual bool GetMimeType(std::string* mime_type) const; 22 virtual bool GetMimeType(std::string* mime_type) const;
22 virtual bool GetCharset(std::string* charset); 23 virtual bool GetCharset(std::string* charset);
23 virtual void GetResponseInfo(net::HttpResponseInfo* info); 24 virtual void GetResponseInfo(net::HttpResponseInfo* info);
24 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); 25 virtual bool IsRedirectResponse(GURL* location, int* http_status_code);
25 26
26 static net::URLRequest::ProtocolFactory Factory; 27 static net::URLRequest::ProtocolFactory Factory;
27 28
(...skipping 16 matching lines...) Expand all
44 45
45 private: 46 private:
46 void GetResponseInfoConst(net::HttpResponseInfo* info) const; 47 void GetResponseInfoConst(net::HttpResponseInfo* info) const;
47 48
48 // This is the file path leading to the root of the directory to use as the 49 // This is the file path leading to the root of the directory to use as the
49 // root of the http server. 50 // root of the http server.
50 static FilePath base_path_; 51 static FilePath base_path_;
51 }; 52 };
52 53
53 #endif // CONTENT_BROWSER_NET_URL_REQUEST_MOCK_HTTP_JOB_H_ 54 #endif // CONTENT_BROWSER_NET_URL_REQUEST_MOCK_HTTP_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698