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

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

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some cleanup Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // This class simulates what wininet does when a dns lookup fails. 4 // This class simulates what wininet does when a dns lookup fails.
5 5
6 #ifndef CONTENT_TEST_NET_URL_REQUEST_ABORT_ON_END_JOB_H_ 6 #ifndef CONTENT_TEST_NET_URL_REQUEST_ABORT_ON_END_JOB_H_
7 #define CONTENT_TEST_NET_URL_REQUEST_ABORT_ON_END_JOB_H_ 7 #define CONTENT_TEST_NET_URL_REQUEST_ABORT_ON_END_JOB_H_
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 26 matching lines...) Expand all
37 static void AddUrlHandler(); 37 static void AddUrlHandler();
38 38
39 private: 39 private:
40 URLRequestAbortOnEndJob(net::URLRequest* request, 40 URLRequestAbortOnEndJob(net::URLRequest* request,
41 net::NetworkDelegate* network_delegate); 41 net::NetworkDelegate* network_delegate);
42 virtual ~URLRequestAbortOnEndJob(); 42 virtual ~URLRequestAbortOnEndJob();
43 43
44 void GetResponseInfoConst(net::HttpResponseInfo* info) const; 44 void GetResponseInfoConst(net::HttpResponseInfo* info) const;
45 void StartAsync(); 45 void StartAsync();
46 46
47 static void AddUrlHandlerOnIOThread();
48
47 bool sent_data_; 49 bool sent_data_;
48 50
49 base::WeakPtrFactory<URLRequestAbortOnEndJob> weak_factory_; 51 base::WeakPtrFactory<URLRequestAbortOnEndJob> weak_factory_;
50 52
51 DISALLOW_COPY_AND_ASSIGN(URLRequestAbortOnEndJob); 53 DISALLOW_COPY_AND_ASSIGN(URLRequestAbortOnEndJob);
52 }; 54 };
53 55
54 } // namespace content 56 } // namespace content
55 57
56 #endif // CONTENT_TEST_NET_URL_REQUEST_ABORT_ON_END_JOB_H_ 58 #endif // CONTENT_TEST_NET_URL_REQUEST_ABORT_ON_END_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698