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

Side by Side Diff: third_party/WebKit/Source/platform/WebScheduler.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "public/platform/WebScheduler.h" 5 #include "public/platform/WebScheduler.h"
6 6
7 #include "public/platform/WebFrameScheduler.h" 7 #include "public/platform/WebFrameScheduler.h"
8 #include "public/platform/WebTraceLocation.h" 8 #include "public/platform/WebTraceLocation.h"
9 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
10 #include "wtf/OwnPtr.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
14 namespace { 13 namespace {
15 14
16 class IdleTaskRunner : public WebThread::IdleTask { 15 class IdleTaskRunner : public WebThread::IdleTask {
17 USING_FAST_MALLOC(IdleTaskRunner); 16 USING_FAST_MALLOC(IdleTaskRunner);
18 WTF_MAKE_NONCOPYABLE(IdleTaskRunner); 17 WTF_MAKE_NONCOPYABLE(IdleTaskRunner);
19 18
20 public: 19 public:
(...skipping 27 matching lines...) Expand all
48 { 47 {
49 postNonNestableIdleTask(location, new IdleTaskRunner(std::move(idleTask))); 48 postNonNestableIdleTask(location, new IdleTaskRunner(std::move(idleTask)));
50 } 49 }
51 50
52 void WebScheduler::postIdleTaskAfterWakeup(const WebTraceLocation& location, std ::unique_ptr<IdleTask> idleTask) 51 void WebScheduler::postIdleTaskAfterWakeup(const WebTraceLocation& location, std ::unique_ptr<IdleTask> idleTask)
53 { 52 {
54 postIdleTaskAfterWakeup(location, new IdleTaskRunner(std::move(idleTask))); 53 postIdleTaskAfterWakeup(location, new IdleTaskRunner(std::move(idleTask)));
55 } 54 }
56 55
57 } // namespace blink 56 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/WaitableEvent.cpp ('k') | third_party/WebKit/Source/platform/WebThreadSupportingGC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698