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

Unified Diff: Source/core/workers/WorkerMessagingProxy.h

Issue 407493005: DevTools: fix indentation in headers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/workers/SharedWorkerGlobalScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerMessagingProxy.h
diff --git a/Source/core/workers/WorkerMessagingProxy.h b/Source/core/workers/WorkerMessagingProxy.h
index fb565ce3a08b4e861d6926480a33580bf13e55cf..1e273edda59cbc56029dc8e81abde749188d1228 100644
--- a/Source/core/workers/WorkerMessagingProxy.h
+++ b/Source/core/workers/WorkerMessagingProxy.h
@@ -39,69 +39,69 @@
namespace WebCore {
- class WorkerObjectProxy;
- class DedicatedWorkerThread;
- class ExecutionContext;
- class Worker;
- class WorkerClients;
-
- class WorkerMessagingProxy FINAL : public WorkerGlobalScopeProxy, public WorkerLoaderProxy {
- WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); WTF_MAKE_FAST_ALLOCATED;
- public:
- WorkerMessagingProxy(Worker*, PassOwnPtrWillBeRawPtr<WorkerClients>);
-
- // Implementations of WorkerGlobalScopeProxy.
- // (Only use these methods in the worker object thread.)
- virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE;
- virtual void terminateWorkerGlobalScope() OVERRIDE;
- virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>) OVERRIDE;
- virtual bool hasPendingActivity() const OVERRIDE;
- virtual void workerObjectDestroyed() OVERRIDE;
- virtual void connectToInspector(WorkerGlobalScopeProxy::PageInspector*) OVERRIDE;
- virtual void disconnectFromInspector() OVERRIDE;
- virtual void sendMessageToInspector(const String&) OVERRIDE;
-
- // These methods come from worker context thread via WorkerObjectProxy
- // and are called on the worker object thread (e.g. main thread).
- void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>);
- void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL);
- void reportConsoleMessage(MessageSource, MessageLevel, const String& message, int lineNumber, const String& sourceURL);
- void postMessageToPageInspector(const String&);
- void confirmMessageFromWorkerObject(bool hasPendingActivity);
- void reportPendingActivity(bool hasPendingActivity);
- void workerGlobalScopeClosed();
- void workerGlobalScopeDestroyed();
-
- // Implementation of WorkerLoaderProxy.
- // These methods are called on different threads to schedule loading
- // requests and to send callbacks back to WorkerGlobalScope.
- virtual void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) OVERRIDE;
- virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) OVERRIDE;
-
- void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>);
-
- protected:
- virtual ~WorkerMessagingProxy();
-
- private:
- static void workerObjectDestroyedInternal(ExecutionContext*, WorkerMessagingProxy*);
-
- RefPtrWillBePersistent<ExecutionContext> m_executionContext;
- OwnPtr<WorkerObjectProxy> m_workerObjectProxy;
- Worker* m_workerObject;
- bool m_mayBeDestroyed;
- RefPtr<DedicatedWorkerThread> m_workerThread;
-
- unsigned m_unconfirmedMessageCount; // Unconfirmed messages from worker object to worker thread.
- bool m_workerThreadHadPendingActivity; // The latest confirmation from worker thread reported that it was still active.
-
- bool m_askedToTerminate;
-
- Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are queued here until there's a thread object created.
- WorkerGlobalScopeProxy::PageInspector* m_pageInspector;
-
- OwnPtrWillBePersistent<WorkerClients> m_workerClients;
- };
+class WorkerObjectProxy;
+class DedicatedWorkerThread;
+class ExecutionContext;
+class Worker;
+class WorkerClients;
+
+class WorkerMessagingProxy FINAL : public WorkerGlobalScopeProxy, public WorkerLoaderProxy {
+ WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); WTF_MAKE_FAST_ALLOCATED;
+public:
+ WorkerMessagingProxy(Worker*, PassOwnPtrWillBeRawPtr<WorkerClients>);
+
+ // Implementations of WorkerGlobalScopeProxy.
+ // (Only use these methods in the worker object thread.)
+ virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE;
+ virtual void terminateWorkerGlobalScope() OVERRIDE;
+ virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>) OVERRIDE;
+ virtual bool hasPendingActivity() const OVERRIDE;
+ virtual void workerObjectDestroyed() OVERRIDE;
+ virtual void connectToInspector(WorkerGlobalScopeProxy::PageInspector*) OVERRIDE;
+ virtual void disconnectFromInspector() OVERRIDE;
+ virtual void sendMessageToInspector(const String&) OVERRIDE;
+
+ // These methods come from worker context thread via WorkerObjectProxy
+ // and are called on the worker object thread (e.g. main thread).
+ void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>);
+ void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL);
+ void reportConsoleMessage(MessageSource, MessageLevel, const String& message, int lineNumber, const String& sourceURL);
+ void postMessageToPageInspector(const String&);
+ void confirmMessageFromWorkerObject(bool hasPendingActivity);
+ void reportPendingActivity(bool hasPendingActivity);
+ void workerGlobalScopeClosed();
+ void workerGlobalScopeDestroyed();
+
+ // Implementation of WorkerLoaderProxy.
+ // These methods are called on different threads to schedule loading
+ // requests and to send callbacks back to WorkerGlobalScope.
+ virtual void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) OVERRIDE;
+ virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) OVERRIDE;
+
+ void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>);
+
+protected:
+ virtual ~WorkerMessagingProxy();
+
+private:
+ static void workerObjectDestroyedInternal(ExecutionContext*, WorkerMessagingProxy*);
+
+ RefPtrWillBePersistent<ExecutionContext> m_executionContext;
+ OwnPtr<WorkerObjectProxy> m_workerObjectProxy;
+ Worker* m_workerObject;
+ bool m_mayBeDestroyed;
+ RefPtr<DedicatedWorkerThread> m_workerThread;
+
+ unsigned m_unconfirmedMessageCount; // Unconfirmed messages from worker object to worker thread.
+ bool m_workerThreadHadPendingActivity; // The latest confirmation from worker thread reported that it was still active.
+
+ bool m_askedToTerminate;
+
+ Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are queued here until there's a thread object created.
+ WorkerGlobalScopeProxy::PageInspector* m_pageInspector;
+
+ OwnPtrWillBePersistent<WorkerClients> m_workerClients;
+};
} // namespace WebCore
« no previous file with comments | « Source/core/workers/SharedWorkerGlobalScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698