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

Side by Side Diff: net/http/failing_http_transaction_factory.h

Issue 667923003: Standardize usage of virtual/override/final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 4
5 #ifndef NET_FAILING_HTTP_TRANSACTION_FACTORY_H_ 5 #ifndef NET_FAILING_HTTP_TRANSACTION_FACTORY_H_
6 #define NET_FAILING_HTTP_TRANSACTION_FACTORY_H_ 6 #define NET_FAILING_HTTP_TRANSACTION_FACTORY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/base/request_priority.h" 10 #include "net/base/request_priority.h"
11 #include "net/http/http_transaction.h" 11 #include "net/http/http_transaction.h"
12 #include "net/http/http_transaction_factory.h" 12 #include "net/http/http_transaction_factory.h"
13 13
14 namespace net { 14 namespace net {
15 15
16 class HttpCache; 16 class HttpCache;
17 class HttpNetworkSession; 17 class HttpNetworkSession;
18 18
19 // Creates transactions that always (asynchronously) return a specified 19 // Creates transactions that always (asynchronously) return a specified
20 // error. The error is returned asynchronously, just after the transaction is 20 // error. The error is returned asynchronously, just after the transaction is
21 // started. 21 // started.
22 class NET_EXPORT FailingHttpTransactionFactory : public HttpTransactionFactory { 22 class NET_EXPORT FailingHttpTransactionFactory : public HttpTransactionFactory {
23 public: 23 public:
24 // The caller must guarantee that |session| outlives this object. 24 // The caller must guarantee that |session| outlives this object.
25 FailingHttpTransactionFactory(HttpNetworkSession* session, Error error); 25 FailingHttpTransactionFactory(HttpNetworkSession* session, Error error);
26 virtual ~FailingHttpTransactionFactory(); 26 ~FailingHttpTransactionFactory() override;
27 27
28 // HttpTransactionFactory: 28 // HttpTransactionFactory:
29 virtual int CreateTransaction( 29 int CreateTransaction(RequestPriority priority,
30 RequestPriority priority, 30 scoped_ptr<HttpTransaction>* trans) override;
31 scoped_ptr<HttpTransaction>* trans) override; 31 HttpCache* GetCache() override;
32 virtual HttpCache* GetCache() override; 32 HttpNetworkSession* GetSession() override;
33 virtual HttpNetworkSession* GetSession() override;
34 33
35 private: 34 private:
36 HttpNetworkSession* session_; 35 HttpNetworkSession* session_;
37 Error error_; 36 Error error_;
38 }; 37 };
39 38
40 } // namespace net 39 } // namespace net
41 40
42 #endif // NET_FAILING_HTTP_TRANSACTION_FACTORY_H_ 41 #endif // NET_FAILING_HTTP_TRANSACTION_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/disk_cache_based_quic_server_info.h ('k') | net/http/failing_http_transaction_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698