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

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

Issue 8404001: Add a browsertest for bug 75604 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: lintey fixey 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 // This class simulates what wininet does when a dns lookup fails.
5
6 #ifndef CONTENT_BROWSER_NET_URL_REQUEST_ABORT_ON_END_JOB_H_
7 #define CONTENT_BROWSER_NET_URL_REQUEST_ABORT_ON_END_JOB_H_
8 #pragma once
9
10 #include <string>
11
12 #include "content/common/content_export.h"
13 #include "net/url_request/url_request_job.h"
14
15 class URLRequestAbortOnEndJob : public net::URLRequestJob {
16 public:
17 static const char k400AbortOnEndUrl[];
18
19 // net::URLRequestJob
20 virtual void Start();
Paweł Hajdan Jr. 2011/10/27 08:52:58 nit: OVERRIDE on those please (base/compiler_speci
gavinp 2011/10/27 12:52:53 Done.
21 virtual bool GetMimeType(std::string* mime_type) const;
22 virtual void GetResponseInfo(net::HttpResponseInfo* info);
23 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
24
25 static net::URLRequestJob* Factory(net::URLRequest* request,
26 const std::string& scheme);
27
28 CONTENT_EXPORT static void AddUrlHandler();
29
30 private:
31 explicit URLRequestAbortOnEndJob(net::URLRequest* request);
32 virtual ~URLRequestAbortOnEndJob();
33
34 void GetResponseInfoConst(net::HttpResponseInfo* info) const;
35 void StartAsync();
36
37 bool sent_data_;
38
39 ScopedRunnableMethodFactory<URLRequestAbortOnEndJob> method_factory_;
40 };
Paweł Hajdan Jr. 2011/10/27 08:52:58 And DISALLOW_COPY_AND_ASSIGN.
gavinp 2011/10/27 12:52:53 Done.
41 #endif
42
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698