Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 #include "wtf/RefPtr.h" | 37 #include "wtf/RefPtr.h" |
| 38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class WorkerObjectProxy; | 42 class WorkerObjectProxy; |
| 43 class DedicatedWorkerThread; | 43 class DedicatedWorkerThread; |
| 44 class ExecutionContext; | 44 class ExecutionContext; |
| 45 class Worker; | 45 class Worker; |
| 46 class WorkerClients; | 46 class WorkerClients; |
| 47 class ConsoleMessage; | |
|
vsevik
2014/08/12 15:46:07
revert this
sergeyv
2014/08/12 16:00:59
Done.
| |
| 47 | 48 |
| 48 class WorkerMessagingProxy FINAL : public WorkerGlobalScopeProxy, public WorkerL oaderProxy { | 49 class WorkerMessagingProxy FINAL : public WorkerGlobalScopeProxy, public WorkerL oaderProxy { |
| 49 WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); WTF_MAKE_FAST_ALLOCATED; | 50 WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); WTF_MAKE_FAST_ALLOCATED; |
| 50 public: | 51 public: |
| 51 WorkerMessagingProxy(Worker*, PassOwnPtrWillBeRawPtr<WorkerClients>); | 52 WorkerMessagingProxy(Worker*, PassOwnPtrWillBeRawPtr<WorkerClients>); |
| 52 | 53 |
| 53 // Implementations of WorkerGlobalScopeProxy. | 54 // Implementations of WorkerGlobalScopeProxy. |
| 54 // (Only use these methods in the worker object thread.) | 55 // (Only use these methods in the worker object thread.) |
| 55 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& use rAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE; | 56 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& use rAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE; |
| 56 virtual void terminateWorkerGlobalScope() OVERRIDE; | 57 virtual void terminateWorkerGlobalScope() OVERRIDE; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 | 100 |
| 100 Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are queue d here until there's a thread object created. | 101 Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are queue d here until there's a thread object created. |
| 101 WorkerGlobalScopeProxy::PageInspector* m_pageInspector; | 102 WorkerGlobalScopeProxy::PageInspector* m_pageInspector; |
| 102 | 103 |
| 103 OwnPtrWillBePersistent<WorkerClients> m_workerClients; | 104 OwnPtrWillBePersistent<WorkerClients> m_workerClients; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace blink | 107 } // namespace blink |
| 107 | 108 |
| 108 #endif // WorkerMessagingProxy_h | 109 #endif // WorkerMessagingProxy_h |
| OLD | NEW |