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

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

Issue 17648006: Rename WorkerContext to WorkerGlobalScope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.idl ('k') | Source/core/workers/WorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerGlobalScopeProxy.h
diff --git a/Source/core/workers/WorkerContextProxy.h b/Source/core/workers/WorkerGlobalScopeProxy.h
similarity index 76%
rename from Source/core/workers/WorkerContextProxy.h
rename to Source/core/workers/WorkerGlobalScopeProxy.h
index 6b1858e34d1a21d24de8f67bdff71057746390ea..67ffca3e1d10b655dfb2cf5b8626cdb1092e092b 100644
--- a/Source/core/workers/WorkerContextProxy.h
+++ b/Source/core/workers/WorkerGlobalScopeProxy.h
@@ -28,36 +28,36 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WorkerContextProxy_h
-#define WorkerContextProxy_h
+#ifndef WorkerGlobalScopeProxy_h
+#define WorkerGlobalScopeProxy_h
#include "core/dom/MessagePort.h"
#include "core/workers/WorkerThread.h"
-#include <wtf/Forward.h>
-#include <wtf/PassOwnPtr.h>
+#include "wtf/Forward.h"
+#include "wtf/PassOwnPtr.h"
namespace WebCore {
class KURL;
class Worker;
- // A proxy to talk to the worker context.
- class WorkerContextProxy {
+ // A proxy to talk to the worker global scope.
+ class WorkerGlobalScopeProxy {
public:
- typedef WorkerContextProxy* CreateDelegate(Worker*);
+ typedef WorkerGlobalScopeProxy* CreateDelegate(Worker*);
// FIXME: Instead of delegating through a static factory function we
// should probably go through some client interface like ChromeClient.
- static WorkerContextProxy* create(Worker* worker) { return s_createDelegate(worker); }
+ static WorkerGlobalScopeProxy* create(Worker* worker) { return s_createDelegate(worker); }
static void setCreateDelegate(CreateDelegate* delegate) { s_createDelegate = delegate; }
- virtual ~WorkerContextProxy() {}
+ virtual ~WorkerGlobalScopeProxy() { }
- virtual void startWorkerContext(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) = 0;
+ virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) = 0;
- virtual void terminateWorkerContext() = 0;
+ virtual void terminateWorkerGlobalScope() = 0;
- virtual void postMessageToWorkerContext(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>) = 0;
+ virtual void postMessageToWorkerGlobalScope(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>) = 0;
virtual bool hasPendingActivity() const = 0;
@@ -78,4 +78,4 @@ namespace WebCore {
} // namespace WebCore
-#endif // WorkerContextProxy_h
+#endif // WorkerGlobalScopeProxy_h
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.idl ('k') | Source/core/workers/WorkerGlobalScopeProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698