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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 1916703002: Prepare for move-only PassOwnPtr in the remaining directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@core1
Patch Set: Merge with trunk. Created 4 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/Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index 75282894728d5271478170370fd6d9dd605d635b..b8e98c9e4d60e62acdd16b0919f0e3582cbe5961 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -84,9 +84,9 @@ static HashSet<WebEmbeddedWorkerImpl*>& runningWorkerInstances()
return set;
}
-WebEmbeddedWorkerImpl::WebEmbeddedWorkerImpl(PassOwnPtr<WebServiceWorkerContextClient> client, PassOwnPtr<WebWorkerContentSettingsClientProxy> ContentSettingsClient)
- : m_workerContextClient(client)
- , m_contentSettingsClient(ContentSettingsClient)
+WebEmbeddedWorkerImpl::WebEmbeddedWorkerImpl(PassOwnPtr<WebServiceWorkerContextClient> client, PassOwnPtr<WebWorkerContentSettingsClientProxy> contentSettingsClient)
+ : m_workerContextClient(std::move(client))
+ , m_contentSettingsClient(std::move(contentSettingsClient))
, m_workerInspectorProxy(WorkerInspectorProxy::create())
, m_webView(nullptr)
, m_mainFrame(nullptr)
@@ -236,7 +236,7 @@ void WebEmbeddedWorkerImpl::postMessageToPageInspector(const String& message)
void WebEmbeddedWorkerImpl::postTaskToLoader(PassOwnPtr<ExecutionContextTask> task)
{
- m_mainFrame->frame()->document()->postTask(BLINK_FROM_HERE, task);
+ m_mainFrame->frame()->document()->postTask(BLINK_FROM_HERE, std::move(task));
}
bool WebEmbeddedWorkerImpl::postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask> task)
@@ -244,7 +244,7 @@ bool WebEmbeddedWorkerImpl::postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionCont
if (m_askedToTerminate || !m_workerThread)
return false;
- m_workerThread->postTask(BLINK_FROM_HERE, task);
+ m_workerThread->postTask(BLINK_FROM_HERE, std::move(task));
return !m_workerThread->terminated();
}
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698