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

Unified Diff: chrome/browser/automation/url_request_slow_download_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_slow_download_job.h
===================================================================
--- chrome/browser/automation/url_request_slow_download_job.h (revision 11030)
+++ chrome/browser/automation/url_request_slow_download_job.h (working copy)
@@ -8,13 +8,14 @@
#ifndef CHROME_BROWSER_AUTOMATION_URL_REQUEST_SLOW_DOWNLOAD_JOB_H__
#define CHROME_BROWSER_AUTOMATION_URL_REQUEST_SLOW_DOWNLOAD_JOB_H__
+#include <string>
#include <vector>
#include "net/url_request/url_request_job.h"
class URLRequestSlowDownloadJob : public URLRequestJob {
public:
- URLRequestSlowDownloadJob(URLRequest* request);
+ explicit URLRequestSlowDownloadJob(URLRequest* request);
virtual ~URLRequestSlowDownloadJob() { }
// Timer callback, used to check to see if we should finish our download and
@@ -23,7 +24,7 @@
// URLRequestJob methods
virtual void Start();
- virtual bool GetMimeType(std::string* mime_type);
+ virtual bool GetMimeType(std::string* mime_type) const;
virtual void GetResponseInfo(net::HttpResponseInfo* info);
virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
@@ -39,6 +40,8 @@
static void AddUITestUrls();
private:
+ void GetResponseInfoConst(net::HttpResponseInfo* info) const;
+
// Mark all pending requests to be finished. We keep track of pending
// requests in |kPendingRequests|.
static void FinishPendingRequests();

Powered by Google App Engine
This is Rietveld 408576698