Remove aura enum from DesktopMediaID to fix desktop mirroring audio (CrOS).
[chromium-blink-merge.git] / chrome / browser / devtools / devtools_network_transaction_factory.h
blob9fbbfef875a75ca6d6540267169d8797d7ce91c0
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "net/base/request_priority.h"
11 #include "net/http/http_transaction_factory.h"
13 class DevToolsNetworkController;
15 namespace net {
16 class HttpCache;
17 class HttpNetworkSession;
18 class HttpTransaction;
21 // NetworkTransactionFactory wraps HttpNetworkTransactions.
22 class DevToolsNetworkTransactionFactory : public net::HttpTransactionFactory {
23 public:
24 DevToolsNetworkTransactionFactory(
25 DevToolsNetworkController* controller,
26 net::HttpNetworkSession* session);
27 ~DevToolsNetworkTransactionFactory() override;
29 // net::HttpTransactionFactory methods:
30 int CreateTransaction(net::RequestPriority priority,
31 scoped_ptr<net::HttpTransaction>* trans) override;
32 net::HttpCache* GetCache() override;
33 net::HttpNetworkSession* GetSession() override;
35 private:
36 DevToolsNetworkController* controller_;
37 scoped_ptr<net::HttpTransactionFactory> network_layer_;
39 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransactionFactory);
42 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_