Commit d3757f83 authored by tzik's avatar tzik Committed by Commit Bot

Replace PassRefPtr with RefPtr in Blink modules/{serviceworkers,compositorworker}

PassRefPtr is now an alias of RefPtr. This CL inlines the alias to the
users in modules/{serviceworkers,compositorworker} for PassRefPtr
removal.

Bug: 494719
Change-Id: I872d68f5816bcdbb8eaee0cfb495c56317c2c460
Reviewed-on: https://chromium-review.googlesource.com/666950Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#502170}
parent 304ffe74
......@@ -21,7 +21,7 @@ namespace blink {
AnimationWorkletGlobalScope* AnimationWorkletGlobalScope::Create(
const KURL& url,
const String& user_agent,
PassRefPtr<SecurityOrigin> security_origin,
RefPtr<SecurityOrigin> security_origin,
v8::Isolate* isolate,
WorkerThread* thread,
WorkerClients* worker_clients) {
......@@ -33,7 +33,7 @@ AnimationWorkletGlobalScope* AnimationWorkletGlobalScope::Create(
AnimationWorkletGlobalScope::AnimationWorkletGlobalScope(
const KURL& url,
const String& user_agent,
PassRefPtr<SecurityOrigin> security_origin,
RefPtr<SecurityOrigin> security_origin,
v8::Isolate* isolate,
WorkerThread* thread,
WorkerClients* worker_clients)
......
......@@ -24,7 +24,7 @@ class MODULES_EXPORT AnimationWorkletGlobalScope
public:
static AnimationWorkletGlobalScope* Create(const KURL&,
const String& user_agent,
PassRefPtr<SecurityOrigin>,
RefPtr<SecurityOrigin>,
v8::Isolate*,
WorkerThread*,
WorkerClients*);
......@@ -46,7 +46,7 @@ class MODULES_EXPORT AnimationWorkletGlobalScope
private:
AnimationWorkletGlobalScope(const KURL&,
const String& user_agent,
PassRefPtr<SecurityOrigin>,
RefPtr<SecurityOrigin>,
v8::Isolate*,
WorkerThread*,
WorkerClients*);
......
......@@ -7,7 +7,7 @@
#include "core/workers/InProcessWorkerBase.h"
#include "modules/ModulesExport.h"
#include "platform/wtf/PassRefPtr.h"
#include "platform/wtf/RefPtr.h"
#include "platform/wtf/text/AtomicString.h"
namespace blink {
......
......@@ -71,7 +71,7 @@ const AtomicString& CompositorWorkerGlobalScope::InterfaceName() const {
void CompositorWorkerGlobalScope::postMessage(
ScriptState* script_state,
PassRefPtr<SerializedScriptValue> message,
RefPtr<SerializedScriptValue> message,
const MessagePortArray& ports,
ExceptionState& exception_state) {
// Disentangle the port in preparation for sending it to the remote context.
......
......@@ -34,7 +34,7 @@ class MODULES_EXPORT CompositorWorkerGlobalScope final
const AtomicString& InterfaceName() const override;
void postMessage(ScriptState*,
PassRefPtr<SerializedScriptValue>,
RefPtr<SerializedScriptValue>,
const MessagePortArray&,
ExceptionState&);
static bool CanTransferArrayBuffersAndImageBitmaps() { return true; }
......
......@@ -20,7 +20,7 @@ ExtendableMessageEvent* ExtendableMessageEvent::Create(
}
ExtendableMessageEvent* ExtendableMessageEvent::Create(
PassRefPtr<SerializedScriptValue> data,
RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
WaitUntilObserver* observer) {
......@@ -28,7 +28,7 @@ ExtendableMessageEvent* ExtendableMessageEvent::Create(
}
ExtendableMessageEvent* ExtendableMessageEvent::Create(
PassRefPtr<SerializedScriptValue> data,
RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
ServiceWorkerClient* source,
......@@ -40,7 +40,7 @@ ExtendableMessageEvent* ExtendableMessageEvent::Create(
}
ExtendableMessageEvent* ExtendableMessageEvent::Create(
PassRefPtr<SerializedScriptValue> data,
RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
ServiceWorker* source,
......@@ -115,7 +115,7 @@ ExtendableMessageEvent::ExtendableMessageEvent(
}
ExtendableMessageEvent::ExtendableMessageEvent(
PassRefPtr<SerializedScriptValue> data,
RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
WaitUntilObserver* observer)
......
......@@ -23,16 +23,16 @@ class MODULES_EXPORT ExtendableMessageEvent final : public ExtendableEvent {
const AtomicString& type,
const ExtendableMessageEventInit& initializer,
WaitUntilObserver*);
static ExtendableMessageEvent* Create(PassRefPtr<SerializedScriptValue> data,
static ExtendableMessageEvent* Create(RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
WaitUntilObserver*);
static ExtendableMessageEvent* Create(PassRefPtr<SerializedScriptValue> data,
static ExtendableMessageEvent* Create(RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
ServiceWorkerClient* source,
WaitUntilObserver*);
static ExtendableMessageEvent* Create(PassRefPtr<SerializedScriptValue> data,
static ExtendableMessageEvent* Create(RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
ServiceWorker* source,
......@@ -41,7 +41,7 @@ class MODULES_EXPORT ExtendableMessageEvent final : public ExtendableEvent {
SerializedScriptValue* SerializedData() const {
return serialized_data_.Get();
}
void SetSerializedData(PassRefPtr<SerializedScriptValue> serialized_data) {
void SetSerializedData(RefPtr<SerializedScriptValue> serialized_data) {
serialized_data_ = std::move(serialized_data);
}
const String& origin() const { return origin_; }
......@@ -59,7 +59,7 @@ class MODULES_EXPORT ExtendableMessageEvent final : public ExtendableEvent {
ExtendableMessageEvent(const AtomicString& type,
const ExtendableMessageEventInit& initializer,
WaitUntilObserver*);
ExtendableMessageEvent(PassRefPtr<SerializedScriptValue> data,
ExtendableMessageEvent(RefPtr<SerializedScriptValue> data,
const String& origin,
MessagePortArray* ports,
WaitUntilObserver*);
......
......@@ -19,7 +19,7 @@ ForeignFetchRespondWithObserver* ForeignFetchRespondWithObserver::Create(
WebURLRequest::FetchRedirectMode redirect_mode,
WebURLRequest::FrameType frame_type,
WebURLRequest::RequestContext request_context,
PassRefPtr<SecurityOrigin> request_origin,
RefPtr<SecurityOrigin> request_origin,
WaitUntilObserver* observer) {
return new ForeignFetchRespondWithObserver(
context, event_id, request_url, request_mode, redirect_mode, frame_type,
......@@ -102,7 +102,7 @@ ForeignFetchRespondWithObserver::ForeignFetchRespondWithObserver(
WebURLRequest::FetchRedirectMode redirect_mode,
WebURLRequest::FrameType frame_type,
WebURLRequest::RequestContext request_context,
PassRefPtr<SecurityOrigin> request_origin,
RefPtr<SecurityOrigin> request_origin,
WaitUntilObserver* observer)
: FetchRespondWithObserver(context,
event_id,
......
......@@ -22,7 +22,7 @@ class MODULES_EXPORT ForeignFetchRespondWithObserver final
WebURLRequest::FetchRedirectMode,
WebURLRequest::FrameType,
WebURLRequest::RequestContext,
PassRefPtr<SecurityOrigin>,
RefPtr<SecurityOrigin>,
WaitUntilObserver*);
void OnResponseFulfilled(const ScriptValue&) override;
......@@ -35,7 +35,7 @@ class MODULES_EXPORT ForeignFetchRespondWithObserver final
WebURLRequest::FetchRedirectMode,
WebURLRequest::FrameType,
WebURLRequest::RequestContext,
PassRefPtr<SecurityOrigin>,
RefPtr<SecurityOrigin>,
WaitUntilObserver*);
RefPtr<SecurityOrigin> request_origin_;
......
......@@ -51,7 +51,7 @@ const AtomicString& ServiceWorker::InterfaceName() const {
}
void ServiceWorker::postMessage(ScriptState* script_state,
PassRefPtr<SerializedScriptValue> message,
RefPtr<SerializedScriptValue> message,
const MessagePortArray& ports,
ExceptionState& exception_state) {
ServiceWorkerContainerClient* client =
......
......@@ -37,7 +37,7 @@
#include "core/workers/AbstractWorker.h"
#include "modules/ModulesExport.h"
#include "platform/bindings/ActiveScriptWrappable.h"
#include "platform/wtf/PassRefPtr.h"
#include "platform/wtf/RefPtr.h"
#include "public/platform/modules/serviceworker/WebServiceWorker.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerProxy.h"
......@@ -63,7 +63,7 @@ class MODULES_EXPORT ServiceWorker final
EAGERLY_FINALIZE();
void postMessage(ScriptState*,
PassRefPtr<SerializedScriptValue> message,
RefPtr<SerializedScriptValue> message,
const MessagePortArray&,
ExceptionState&);
static bool CanTransferArrayBuffersAndImageBitmaps() { return false; }
......
......@@ -87,7 +87,7 @@ String ServiceWorkerClient::frameType(ScriptState* script_state) const {
}
void ServiceWorkerClient::postMessage(ScriptState* script_state,
PassRefPtr<SerializedScriptValue> message,
RefPtr<SerializedScriptValue> message,
const MessagePortArray& ports,
ExceptionState& exception_state) {
ExecutionContext* context = ExecutionContext::From(script_state);
......
......@@ -40,7 +40,7 @@ class MODULES_EXPORT ServiceWorkerClient
String frameType(ScriptState*) const;
String id() const { return uuid_; }
void postMessage(ScriptState*,
PassRefPtr<SerializedScriptValue> message,
RefPtr<SerializedScriptValue> message,
const MessagePortArray&,
ExceptionState&);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment