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

Unified Diff: headless/lib/browser/headless_url_request_context_getter.h

Issue 1854043002: convert //headless to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: headless/lib/browser/headless_url_request_context_getter.h
diff --git a/headless/lib/browser/headless_url_request_context_getter.h b/headless/lib/browser/headless_url_request_context_getter.h
index cfd927b1071a5270606adb42e74f00f15d032569..0e5912f338ed92c3b3e2089264190f2656e43aa4 100644
--- a/headless/lib/browser/headless_url_request_context_getter.h
+++ b/headless/lib/browser/headless_url_request_context_getter.h
@@ -5,11 +5,12 @@
#ifndef HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_
#define HEADLESS_LIB_BROWSER_HEADLESS_URL_REQUEST_CONTEXT_GETTER_H_
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "content/public/browser/content_browser_client.h"
#include "headless/public/headless_browser.h"
#include "net/proxy/proxy_config_service.h"
@@ -54,9 +55,9 @@ class HeadlessURLRequestContextGetter : public net::URLRequestContextGetter {
protected:
~HeadlessURLRequestContextGetter() override;
- scoped_ptr<net::NetworkDelegate> CreateNetworkDelegate();
- scoped_ptr<net::ProxyConfigService> GetProxyConfigService();
- scoped_ptr<net::ProxyService> GetProxyService();
+ std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate();
+ std::unique_ptr<net::ProxyConfigService> GetProxyConfigService();
+ std::unique_ptr<net::ProxyService> GetProxyService();
private:
bool ignore_certificate_errors_;
@@ -66,10 +67,10 @@ class HeadlessURLRequestContextGetter : public net::URLRequestContextGetter {
net::NetLog* net_log_;
HeadlessBrowser::Options options_;
- scoped_ptr<net::ProxyConfigService> proxy_config_service_;
- scoped_ptr<net::NetworkDelegate> network_delegate_;
- scoped_ptr<net::URLRequestContextStorage> storage_;
- scoped_ptr<net::URLRequestContext> url_request_context_;
+ std::unique_ptr<net::ProxyConfigService> proxy_config_service_;
+ std::unique_ptr<net::NetworkDelegate> network_delegate_;
+ std::unique_ptr<net::URLRequestContextStorage> storage_;
+ std::unique_ptr<net::URLRequestContext> url_request_context_;
content::ProtocolHandlerMap protocol_handlers_;
content::URLRequestInterceptorScopedVector request_interceptors_;
« no previous file with comments | « headless/lib/browser/headless_devtools.cc ('k') | headless/lib/browser/headless_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698