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

Unified Diff: content/child/blink_platform_impl.h

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) 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
« no previous file with comments | « chrome/renderer/tts_dispatcher.h ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/blink_platform_impl.h
diff --git a/content/child/blink_platform_impl.h b/content/child/blink_platform_impl.h
index 9ccd0ef1774914c823d876bfa794fd1ff4f0aeda..6b8731722157f73d1f2198d879bcd1bf707c5c02 100644
--- a/content/child/blink_platform_impl.h
+++ b/content/child/blink_platform_impl.h
@@ -79,7 +79,7 @@ class CONTENT_EXPORT BlinkPlatformImpl
uint32_t GetUniqueIdForProcess() override;
blink::WebString UserAgent() override;
blink::WebURLError CancelledError(const blink::WebURL& url) const override;
- blink::WebThread* CreateThread(const char* name) override;
+ std::unique_ptr<blink::WebThread> CreateThread(const char* name) override;
blink::WebThread* CurrentThread() override;
void RecordAction(const blink::UserMetricsAction&) override;
@@ -97,7 +97,7 @@ class CONTENT_EXPORT BlinkPlatformImpl
const blink::WebString& value2) override;
void SuddenTerminationChanged(bool enabled) override {}
blink::WebThread* CompositorThread() const override;
- blink::WebGestureCurve* CreateFlingAnimationCurve(
+ std::unique_ptr<blink::WebGestureCurve> CreateFlingAnimationCurve(
blink::WebGestureDevice device_source,
const blink::WebFloatPoint& velocity,
const blink::WebSize& cumulative_scroll) override;
@@ -120,12 +120,12 @@ class CONTENT_EXPORT BlinkPlatformImpl
// destructed.
void SetCompositorThread(blink::scheduler::WebThreadBase* compositor_thread);
- blink::WebFeaturePolicy* CreateFeaturePolicy(
+ std::unique_ptr<blink::WebFeaturePolicy> CreateFeaturePolicy(
const blink::WebFeaturePolicy* parentPolicy,
const blink::WebParsedFeaturePolicy& containerPolicy,
const blink::WebParsedFeaturePolicy& policyHeader,
const blink::WebSecurityOrigin& origin) override;
- blink::WebFeaturePolicy* DuplicateFeaturePolicyWithOrigin(
+ std::unique_ptr<blink::WebFeaturePolicy> DuplicateFeaturePolicyWithOrigin(
const blink::WebFeaturePolicy& policy,
const blink::WebSecurityOrigin& new_origin) override;
« no previous file with comments | « chrome/renderer/tts_dispatcher.h ('k') | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698