OLD | NEW |
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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 std::unique_ptr<net::HttpTransaction> network_transaction); | 52 std::unique_ptr<net::HttpTransaction> network_transaction); |
53 | 53 |
54 ~DevToolsNetworkTransaction() override; | 54 ~DevToolsNetworkTransaction() override; |
55 | 55 |
56 // HttpTransaction methods: | 56 // HttpTransaction methods: |
57 int Start(const net::HttpRequestInfo* request, | 57 int Start(const net::HttpRequestInfo* request, |
58 const net::CompletionCallback& callback, | 58 const net::CompletionCallback& callback, |
59 const net::NetLogWithSource& net_log) override; | 59 const net::NetLogWithSource& net_log) override; |
60 int RestartIgnoringLastError( | 60 int RestartIgnoringLastError( |
61 const net::CompletionCallback& callback) override; | 61 const net::CompletionCallback& callback) override; |
62 int RestartWithCertificate(net::X509Certificate* client_cert, | 62 int RestartWithCertificate( |
63 net::SSLPrivateKey* client_private_key, | 63 scoped_refptr<net::X509Certificate> client_cert, |
64 const net::CompletionCallback& callback) override; | 64 scoped_refptr<net::SSLPrivateKey> client_private_key, |
| 65 const net::CompletionCallback& callback) override; |
65 int RestartWithAuth(const net::AuthCredentials& credentials, | 66 int RestartWithAuth(const net::AuthCredentials& credentials, |
66 const net::CompletionCallback& callback) override; | 67 const net::CompletionCallback& callback) override; |
67 bool IsReadyToRestartForAuth() override; | 68 bool IsReadyToRestartForAuth() override; |
68 | 69 |
69 int Read(net::IOBuffer* buf, | 70 int Read(net::IOBuffer* buf, |
70 int buf_len, | 71 int buf_len, |
71 const net::CompletionCallback& callback) override; | 72 const net::CompletionCallback& callback) override; |
72 void StopCaching() override; | 73 void StopCaching() override; |
73 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; | 74 bool GetFullRequestHeaders(net::HttpRequestHeaders* headers) const override; |
74 int64_t GetTotalReceivedBytes() const override; | 75 int64_t GetTotalReceivedBytes() const override; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 const net::HttpRequestInfo* request_; | 126 const net::HttpRequestInfo* request_; |
126 | 127 |
127 // True if Fail was already invoked. | 128 // True if Fail was already invoked. |
128 bool failed_; | 129 bool failed_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); | 131 DISALLOW_COPY_AND_ASSIGN(DevToolsNetworkTransaction); |
131 }; | 132 }; |
132 | 133 |
133 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ | 134 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_NETWORK_TRANSACTION_H_ |
OLD | NEW |