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

Unified Diff: content/browser/net/url_request_abort_on_end_job.h

Issue 8479031: Revert 108864 - Add a browsertest for bug 75604 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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: content/browser/net/url_request_abort_on_end_job.h
===================================================================
--- content/browser/net/url_request_abort_on_end_job.h (revision 108864)
+++ content/browser/net/url_request_abort_on_end_job.h (working copy)
@@ -1,52 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-// This class simulates what wininet does when a dns lookup fails.
-
-#ifndef CONTENT_BROWSER_NET_URL_REQUEST_ABORT_ON_END_JOB_H_
-#define CONTENT_BROWSER_NET_URL_REQUEST_ABORT_ON_END_JOB_H_
-#pragma once
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/weak_ptr.h"
-#include "content/common/content_export.h"
-#include "net/url_request/url_request_job.h"
-
-// This url request simulates a network error which occurs immediately after
-// receiving the very first data.
-
-class URLRequestAbortOnEndJob : public net::URLRequestJob {
- public:
- static const char k400AbortOnEndUrl[];
-
- // net::URLRequestJob
- virtual void Start() OVERRIDE;
- virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
- virtual void GetResponseInfo(net::HttpResponseInfo* info) OVERRIDE;
- virtual bool ReadRawData(net::IOBuffer* buf,
- int buf_size,
- int* bytes_read) OVERRIDE;
-
- static net::URLRequestJob* Factory(net::URLRequest* request,
- const std::string& scheme);
-
- CONTENT_EXPORT static void AddUrlHandler();
-
- private:
- explicit URLRequestAbortOnEndJob(net::URLRequest* request);
- virtual ~URLRequestAbortOnEndJob();
-
- void GetResponseInfoConst(net::HttpResponseInfo* info) const;
- void StartAsync();
-
- bool sent_data_;
-
- base::WeakPtrFactory<URLRequestAbortOnEndJob> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(URLRequestAbortOnEndJob);
-};
-#endif
-
« no previous file with comments | « chrome/test/data/webkit/async_script_abort_on_end.html ('k') | content/browser/net/url_request_abort_on_end_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698