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

Unified Diff: third_party/crashpad/crashpad/util/net/http_transport.h

Issue 1911823002: Convert //third_party from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update crashpad's README.chromium Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/crashpad/crashpad/util/net/http_transport.h
diff --git a/third_party/crashpad/crashpad/util/net/http_transport.h b/third_party/crashpad/crashpad/util/net/http_transport.h
index 1acc8e029bfc7908c354815460ac5f3497f29ae2..cd31facf0d56e1aabfa53a2288a7881103403570 100644
--- a/third_party/crashpad/crashpad/util/net/http_transport.h
+++ b/third_party/crashpad/crashpad/util/net/http_transport.h
@@ -15,10 +15,10 @@
#ifndef CRASHPAD_UTIL_NET_HTTP_TRANSPORT_H_
#define CRASHPAD_UTIL_NET_HTTP_TRANSPORT_H_
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "util/net/http_headers.h"
namespace crashpad {
@@ -40,7 +40,7 @@ class HTTPTransport {
//! operating system.
//!
//! \return A new caller-owned HTTPTransport object.
- static scoped_ptr<HTTPTransport> Create();
+ static std::unique_ptr<HTTPTransport> Create();
//! \brief Sets URL to which the request will be made.
//!
@@ -64,7 +64,7 @@ class HTTPTransport {
//!
//! \param[in] stream A HTTPBodyStream, of which this class will take
//! ownership.
- void SetBodyStream(scoped_ptr<HTTPBodyStream> stream);
+ void SetBodyStream(std::unique_ptr<HTTPBodyStream> stream);
//! \brief Sets the timeout for the HTTP request. The default is 15 seconds.
//!
@@ -95,7 +95,7 @@ class HTTPTransport {
std::string url_;
std::string method_;
HTTPHeaders headers_;
- scoped_ptr<HTTPBodyStream> body_stream_;
+ std::unique_ptr<HTTPBodyStream> body_stream_;
double timeout_;
DISALLOW_COPY_AND_ASSIGN(HTTPTransport);

Powered by Google App Engine
This is Rietveld 408576698