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

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

Issue 2904643002: Remove some naked |new| statements in favor of MakeUnique. (Closed)
Patch Set: Revert changes in one test where it caused a crash. Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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_HTTP_HTTP_NETWORK_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string>
mgersh 2017/05/24 15:26:40 Not sure why this was deleted, it looks like it's
Bence 2017/05/24 15:44:56 Reverted. I am sorry for the oversight. Since st
12 11
13 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 13 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
16 #include "base/time/time.h" 15 #include "base/time/time.h"
17 #include "crypto/ec_private_key.h" 16 #include "crypto/ec_private_key.h"
18 #include "net/base/net_error_details.h" 17 #include "net/base/net_error_details.h"
19 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
20 #include "net/base/network_throttle_manager.h" 19 #include "net/base/network_throttle_manager.h"
21 #include "net/base/request_priority.h" 20 #include "net/base/request_priority.h"
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 // Communicate lifetime of transaction to the throttler, and 396 // Communicate lifetime of transaction to the throttler, and
398 // throttled state to the transaction. 397 // throttled state to the transaction.
399 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; 398 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_;
400 399
401 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); 400 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction);
402 }; 401 };
403 402
404 } // namespace net 403 } // namespace net
405 404
406 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ 405 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698