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

Unified Diff: content/test/test_navigation_url_loader.h

Issue 1874903002: Convert //content from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix indent 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
« no previous file with comments | « content/test/test_frame_navigation_observer.h ('k') | content/test/test_navigation_url_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_navigation_url_loader.h
diff --git a/content/test/test_navigation_url_loader.h b/content/test/test_navigation_url_loader.h
index 620fac51c540775ee5f51b58322cc3b66e1c47ad..07cacb3d22415a6c5c7fdbf3afc3631a747b6d84 100644
--- a/content/test/test_navigation_url_loader.h
+++ b/content/test/test_navigation_url_loader.h
@@ -5,7 +5,8 @@
#ifndef CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_H_
#define CONTENT_TEST_TEST_NAVIGATION_URL_LOADER_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/memory/weak_ptr.h"
#include "content/browser/frame_host/navigation_request_info.h"
#include "content/browser/loader/navigation_url_loader.h"
@@ -28,7 +29,7 @@ class TestNavigationURLLoader
: public NavigationURLLoader,
public base::SupportsWeakPtr<TestNavigationURLLoader> {
public:
- TestNavigationURLLoader(scoped_ptr<NavigationRequestInfo> request_info,
+ TestNavigationURLLoader(std::unique_ptr<NavigationRequestInfo> request_info,
NavigationURLLoaderDelegate* delegate);
// NavigationURLLoader implementation.
@@ -44,7 +45,7 @@ class TestNavigationURLLoader
void CallOnRequestRedirected(const net::RedirectInfo& redirect_info,
const scoped_refptr<ResourceResponse>& response);
void CallOnResponseStarted(const scoped_refptr<ResourceResponse>& response,
- scoped_ptr<StreamHandle> body);
+ std::unique_ptr<StreamHandle> body);
int redirect_count() { return redirect_count_; }
@@ -53,7 +54,7 @@ class TestNavigationURLLoader
private:
~TestNavigationURLLoader() override;
- scoped_ptr<NavigationRequestInfo> request_info_;
+ std::unique_ptr<NavigationRequestInfo> request_info_;
NavigationURLLoaderDelegate* delegate_;
int redirect_count_;
bool response_proceeded_;
« no previous file with comments | « content/test/test_frame_navigation_observer.h ('k') | content/test/test_navigation_url_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698