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

Unified Diff: chrome/browser/net/view_http_cache_job_factory.cc

Issue 5607004: net: Remove typedef net::URLRequestJob URLRequestJob; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 2 Created 10 years 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/net/view_http_cache_job_factory.cc
diff --git a/chrome/browser/net/view_http_cache_job_factory.cc b/chrome/browser/net/view_http_cache_job_factory.cc
index 870387740cf8f45cb81fe0d7c1c8a25410d57b22..839130d532575b77998e64610fcea8dcfa629df5 100644
--- a/chrome/browser/net/view_http_cache_job_factory.cc
+++ b/chrome/browser/net/view_http_cache_job_factory.cc
@@ -19,7 +19,10 @@ namespace {
class ViewHttpCacheJob : public net::URLRequestJob {
public:
explicit ViewHttpCacheJob(net::URLRequest* request)
- : URLRequestJob(request), data_offset_(0), cancel_(false), busy_(false),
+ : net::URLRequestJob(request),
+ data_offset_(0),
+ cancel_(false),
+ busy_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(
callback_(this, &ViewHttpCacheJob::OnIOComplete)) {}
@@ -75,7 +78,7 @@ void ViewHttpCacheJob::Kill() {
// is safe.
cancel_ = true;
if (!busy_)
- URLRequestJob::Kill();
+ net::URLRequestJob::Kill();
}
bool ViewHttpCacheJob::GetMimeType(std::string* mime_type) const {
@@ -108,7 +111,7 @@ void ViewHttpCacheJob::OnIOComplete(int result) {
Release(); // Acquired on Start().
if (cancel_)
- return URLRequestJob::Kill();
+ return net::URLRequestJob::Kill();
// Notify that the headers are complete.
NotifyHeadersComplete();
@@ -123,7 +126,7 @@ bool ViewHttpCacheJobFactory::IsSupportedURL(const GURL& url) {
}
// Static.
-URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest(
+net::URLRequestJob* ViewHttpCacheJobFactory::CreateJobForRequest(
net::URLRequest* request) {
return new ViewHttpCacheJob(request);
}
« no previous file with comments | « chrome/browser/net/view_blob_internals_job_factory.cc ('k') | chrome/browser/policy/device_management_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698