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

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

Issue 134213006: Update worker classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 27 matching lines...) Expand all
38 #include "wtf/Vector.h" 38 #include "wtf/Vector.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
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 47
48 class WorkerMessagingProxy : public WorkerGlobalScopeProxy, public WorkerLoa derProxy { 48 class WorkerMessagingProxy FINAL : public WorkerGlobalScopeProxy, public Wor kerLoaderProxy {
49 WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); WTF_MAKE_FAST_ALLOCATED; 49 WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy); WTF_MAKE_FAST_ALLOCATED;
50 public: 50 public:
51 WorkerMessagingProxy(Worker*, PassOwnPtr<WorkerClients>); 51 WorkerMessagingProxy(Worker*, PassOwnPtr<WorkerClients>);
52 52
53 // Implementations of WorkerGlobalScopeProxy. 53 // Implementations of WorkerGlobalScopeProxy.
54 // (Only use these methods in the worker object thread.) 54 // (Only use these methods in the worker object thread.)
55 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE; 55 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE;
56 virtual void terminateWorkerGlobalScope() OVERRIDE; 56 virtual void terminateWorkerGlobalScope() OVERRIDE;
57 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptV alue>, PassOwnPtr<MessagePortChannelArray>) OVERRIDE; 57 virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptV alue>, PassOwnPtr<MessagePortChannelArray>) OVERRIDE;
58 virtual bool hasPendingActivity() const OVERRIDE; 58 virtual bool hasPendingActivity() const OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OwnPtr<WorkerClients> m_workerClients; 103 OwnPtr<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