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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2831033002: Use unique_ptr for Platform::CreateURLLoader (Closed)
Patch Set: Created 3 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/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 28b05e6dae485248cfff9941cec2e3e815afb239..eee72390caaea874199147e526f31a5ade1708ca 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -53,6 +53,7 @@
#include "WebStorageQuotaType.h"
#include "WebString.h"
#include "WebURLError.h"
+#include "WebURLLoader.h"
#include "WebVector.h"
#include "base/metrics/user_metrics_action.h"
#include "cc/resources/shared_bitmap.h"
@@ -127,7 +128,6 @@ struct WebFloatPoint;
class WebThemeEngine;
class WebThread;
class WebTrialTokenValidator;
-class WebURLLoader;
class WebURLLoaderMockFactory;
class WebURLResponse;
class WebURLResponse;
@@ -334,7 +334,7 @@ class BLINK_PLATFORM_EXPORT Platform {
// Network -------------------------------------------------------------
// Returns a new WebURLLoader instance.
- virtual WebURLLoader* CreateURLLoader() { return nullptr; }
+ virtual std::unique_ptr<WebURLLoader> CreateURLLoader() { return nullptr; }
// May return null.
virtual WebPrescientNetworking* PrescientNetworking() { return nullptr; }

Powered by Google App Engine
This is Rietveld 408576698