|
Prepare for move-only PassOwnPtr in the remaining directories.
The changes are mechanical and mostly trivial; they will usually fall
under one of the following buckets:
* Adding std::move() in a place where copying of PassOwnPtr takes place.
* Adding passed() for a callback argument that will be "auto-passed" to
the function.
* Remove const from PassOwnPtr<T> type, since that will be incompatible
with move-only PassOwnPtr.
There are a few unusual instances:
* platform/network/ResourceTimingInfo.h: The CrossThreadCopier
specialization needs to return a PassedWrapper<> object.
* platform/threading/BackgroundTaskRunner.cpp: Convert PassOwnPtr
to std::unique_ptr; additional use of base::Passed requires a new
DEPS entry.
* wtf/Functional.h: It is sufficient to receive a PassOwnPtr as a const
reference.
* public/WebContentSettingCallbacks.h and
public/WebFileSystemCallbacks.h: These headers cannot include
PassOwnPtr.h, so the functions declared there must take a PassOwnPtr
as an rvalue reference.
All these changes are no-op for now, but will be necessary when
PassOwnPtr becomes move-only.
BUG= 582349
Committed: https://crrev.com/7f32753bce23595c54633f13592f768823e324ba
Cr-Commit-Position: refs/heads/master@{#389744}
Total comments: 5
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+74 lines, -70 lines) |
Patch |
 |
M |
third_party/WebKit/Source/platform/TraceEvent.h
|
View
|
1
2
|
8 chunks |
+16 lines, -15 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/WebThreadSupportingGC.h
|
View
|
2
3
4
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/audio/AudioBus.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/exported/WebContentSettingCallbacks.cpp
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/exported/WebFileSystemCallbacks.cpp
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/CompositorMutatorClient.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/heap/ThreadState.cpp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/network/ResourceTimingInfo.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/scheduler/CancellableTaskFactoryTest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/testing/FontTestHelpers.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/threading/BackgroundTaskRunner.cpp
|
View
|
1
2
3
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/threading/DEPS
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/InspectorOverlay.cpp
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/LocalFileSystemClient.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebDOMActivityLogger.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebPepperSocketChannelClientProxy.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WorkerContentSettingsClient.cpp
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/wtf/Functional.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/wtf/HashTraits.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/WebContentSettingCallbacks.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/platform/WebFileSystemCallbacks.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 42 (19 generated)
|