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

Unified Diff: chrome/browser/automation/url_request_mock_http_job.h

Issue 40138: Use FilterContext to allow filters to access URLRequestJob data... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/url_request_mock_http_job.h
===================================================================
--- chrome/browser/automation/url_request_mock_http_job.h (revision 11030)
+++ chrome/browser/automation/url_request_mock_http_job.h (working copy)
@@ -7,6 +7,8 @@
#ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_MOCK_HTTP_JOB_H__
#define CHROME_BROWSER_AUTOMATION_URL_REQUEST_MOCK_HTTP_JOB_H__
+#include <string>
+
#include "net/url_request/url_request_file_job.h"
class URLRequestMockHTTPJob : public URLRequestFileJob {
@@ -14,7 +16,7 @@
URLRequestMockHTTPJob(URLRequest* request, const FilePath& file_path);
virtual ~URLRequestMockHTTPJob() { }
- virtual bool GetMimeType(std::string* mime_type);
+ virtual bool GetMimeType(std::string* mime_type) const;
virtual bool GetCharset(std::string* charset);
virtual void GetResponseInfo(net::HttpResponseInfo* info);
@@ -27,6 +29,8 @@
static GURL GetMockUrl(const std::wstring& path);
private:
+ void GetResponseInfoConst(net::HttpResponseInfo* info) const;
+
// This is the file path leading to the root of the directory to use as the
// root of the http server.
static std::wstring base_path_;

Powered by Google App Engine
This is Rietveld 408576698