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

Side by Side Diff: chrome/browser/devtools/devtools_network_transaction_factory.h

Issue 182993003: Add the ability for DevTools to wrap network transactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments, added unit tests Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_
7
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"
12
13 class DevToolsNetworkController;
14
15 namespace net {
16 class HttpCache;
17 class HttpNetworkSession;
18 class HttpTransaction;
19 } // namespace net
20
21 // NetworkTransactionFactory wraps HttpNetworkTransactions.
22 class DevToolsNetworkTransactionFactory : public net::HttpTransactionFactory {
23 public:
24 DevToolsNetworkTransactionFactory(
25 DevToolsNetworkController* controller,
26 net::HttpNetworkSession* session);
27 virtual ~DevToolsNetworkTransactionFactory();
28
29 // net::HttpTransactionFactory methods:
30 virtual int CreateTransaction(
31 net::RequestPriority priority,
32 scoped_ptr<net::HttpTransaction>* trans) OVERRIDE;
33 virtual net::HttpCache* GetCache() OVERRIDE;
34 virtual net::HttpNetworkSession* GetSession() OVERRIDE;
35
36 private:
37 DevToolsNetworkController* controller_;
38 scoped_ptr<net::HttpTransactionFactory> network_layer_;
39
40 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransactionFactory);
41 };
42
43 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698