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

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

Issue 2148363004: Use std::unique_ptr<> for WebTaskRunner::clone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebTaskRunner.h
diff --git a/third_party/WebKit/public/platform/WebTaskRunner.h b/third_party/WebKit/public/platform/WebTaskRunner.h
index fc5959664f1d079bf79d34e1f56aa54a70be210e..3f4c35c6096e2752606157dda14b886425c30bed 100644
--- a/third_party/WebKit/public/platform/WebTaskRunner.h
+++ b/third_party/WebKit/public/platform/WebTaskRunner.h
@@ -7,11 +7,10 @@
#include "WebCommon.h"
#include "public/platform/WebTraceLocation.h"
+#include <memory>
#ifdef INSIDE_BLINK
#include "wtf/Functional.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
#endif
namespace blink {
@@ -36,7 +35,7 @@ public:
virtual void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) = 0;
// Returns a clone of the WebTaskRunner.
- virtual WebTaskRunner* clone() = 0;
+ virtual std::unique_ptr<WebTaskRunner> clone() = 0;
// Returns true if the current thread is a thread on which a task may be run.
// Can be called from any thread.
@@ -70,11 +69,6 @@ public:
// For same-thread posting. Must be called from the associated WebThread.
void postTask(const WebTraceLocation&, std::unique_ptr<WTF::Closure>);
void postDelayedTask(const WebTraceLocation&, std::unique_ptr<WTF::Closure>, long long delayMs);
-
- std::unique_ptr<WebTaskRunner> adoptClone()
- {
- return wrapUnique(clone());
- }
#endif
};
« no previous file with comments | « third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698