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

Side by Side Diff: Source/core/workers/WorkerMessagingProxy.h

Issue 318023002: Oilpan: Prepare to make ExecutionContext GarbageCollectedMixin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask >) OVERRIDE; 79 virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask >) OVERRIDE;
80 80
81 void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>); 81 void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>);
82 82
83 protected: 83 protected:
84 virtual ~WorkerMessagingProxy(); 84 virtual ~WorkerMessagingProxy();
85 85
86 private: 86 private:
87 static void workerObjectDestroyedInternal(ExecutionContext*, WorkerMessa gingProxy*); 87 static void workerObjectDestroyedInternal(ExecutionContext*, WorkerMessa gingProxy*);
88 88
89 RefPtr<ExecutionContext> m_executionContext; 89 RefPtrWillBePersistent<ExecutionContext> m_executionContext;
90 OwnPtr<WorkerObjectProxy> m_workerObjectProxy; 90 OwnPtr<WorkerObjectProxy> m_workerObjectProxy;
91 Worker* m_workerObject; 91 Worker* m_workerObject;
92 bool m_mayBeDestroyed; 92 bool m_mayBeDestroyed;
93 RefPtr<DedicatedWorkerThread> m_workerThread; 93 RefPtr<DedicatedWorkerThread> m_workerThread;
94 94
95 unsigned m_unconfirmedMessageCount; // Unconfirmed messages from worker object to worker thread. 95 unsigned m_unconfirmedMessageCount; // Unconfirmed messages from worker object to worker thread.
96 bool m_workerThreadHadPendingActivity; // The latest confirmation from w orker thread reported that it was still active. 96 bool m_workerThreadHadPendingActivity; // The latest confirmation from w orker thread reported that it was still active.
97 97
98 bool m_askedToTerminate; 98 bool m_askedToTerminate;
99 99
100 Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are q ueued here until there's a thread object created. 100 Vector<OwnPtr<ExecutionContextTask> > m_queuedEarlyTasks; // Tasks are q ueued here until there's a thread object created.
101 WorkerGlobalScopeProxy::PageInspector* m_pageInspector; 101 WorkerGlobalScopeProxy::PageInspector* m_pageInspector;
102 102
103 OwnPtrWillBePersistent<WorkerClients> m_workerClients; 103 OwnPtrWillBePersistent<WorkerClients> m_workerClients;
104 }; 104 };
105 105
106 } // namespace WebCore 106 } // namespace WebCore
107 107
108 #endif // WorkerMessagingProxy_h 108 #endif // WorkerMessagingProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698