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

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

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/http/http_transaction.h ('k') | net/http/http_transaction_test_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_HTTP_HTTP_TRANSACTION_FACTORY_H_
6 #define NET_HTTP_HTTP_TRANSACTION_FACTORY_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "net/base/net_export.h"
10 #include "net/base/request_priority.h"
11
12 namespace net {
13
14 class HttpCache;
15 class HttpNetworkSession;
16 class HttpTransaction;
17
18 // An interface to a class that can create HttpTransaction objects.
19 class NET_EXPORT HttpTransactionFactory {
20 public:
21 virtual ~HttpTransactionFactory() {}
22
23 // Creates a HttpTransaction object. On success, saves the new
24 // transaction to |*trans| and returns OK.
25 virtual int CreateTransaction(RequestPriority priority,
26 scoped_ptr<HttpTransaction>* trans) = 0;
27
28 // Returns the associated cache if any (may be NULL).
29 virtual HttpCache* GetCache() = 0;
30
31 // Returns the associated HttpNetworkSession used by new transactions.
32 virtual HttpNetworkSession* GetSession() = 0;
33 };
34
35 } // namespace net
36
37 #endif // NET_HTTP_HTTP_TRANSACTION_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_transaction.h ('k') | net/http/http_transaction_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698