| Index: third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.h b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| index 92d1d2cee9784f52754307836b2de871e1bd2549..cd3c1fe93896af16e8f12a9ed7f2794a38f6e986 100644
|
| --- a/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| +++ b/third_party/WebKit/Source/core/dom/ExecutionContext.h
|
| @@ -40,7 +40,8 @@
|
| #include "platform/weborigin/ReferrerPolicy.h"
|
| #include "wtf/Deque.h"
|
| #include "wtf/Noncopyable.h"
|
| -#include <memory>
|
| +#include "wtf/OwnPtr.h"
|
| +#include "wtf/PassOwnPtr.h"
|
|
|
| namespace blink {
|
|
|
| @@ -107,7 +108,7 @@ public:
|
| void reportException(ErrorEvent*, AccessControlStatus);
|
|
|
| virtual void addConsoleMessage(ConsoleMessage*) = 0;
|
| - virtual void logExceptionToConsole(const String& errorMessage, std::unique_ptr<SourceLocation>) = 0;
|
| + virtual void logExceptionToConsole(const String& errorMessage, PassOwnPtr<SourceLocation>) = 0;
|
|
|
| PublicURLManager& publicURLManager();
|
|
|
| @@ -116,7 +117,7 @@ public:
|
| void suspendActiveDOMObjects();
|
| void resumeActiveDOMObjects();
|
| void stopActiveDOMObjects();
|
| - void postSuspendableTask(std::unique_ptr<SuspendableTask>);
|
| + void postSuspendableTask(PassOwnPtr<SuspendableTask>);
|
| void notifyContextDestroyed() override;
|
|
|
| virtual void suspendScheduledTasks();
|
| @@ -167,7 +168,7 @@ private:
|
|
|
| bool m_inDispatchErrorEvent;
|
| class PendingException;
|
| - std::unique_ptr<Vector<std::unique_ptr<PendingException>>> m_pendingExceptions;
|
| + OwnPtr<Vector<OwnPtr<PendingException>>> m_pendingExceptions;
|
|
|
| bool m_activeDOMObjectsAreSuspended;
|
| bool m_activeDOMObjectsAreStopped;
|
| @@ -180,7 +181,7 @@ private:
|
| // increment and decrement the counter.
|
| int m_windowInteractionTokens;
|
|
|
| - Deque<std::unique_ptr<SuspendableTask>> m_suspendedTasks;
|
| + Deque<OwnPtr<SuspendableTask>> m_suspendedTasks;
|
| bool m_isRunSuspendableTasksScheduled;
|
|
|
| ReferrerPolicy m_referrerPolicy;
|
|
|