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

Side by Side Diff: Source/core/dom/ScriptExecutionContext.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/MessagePort.cpp ('k') | Source/core/dom/ScriptExecutionContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class PublicURLManager; 48 class PublicURLManager;
49 class ScriptCallStack; 49 class ScriptCallStack;
50 class ScriptState; 50 class ScriptState;
51 51
52 class ScriptExecutionContext : public SecurityContext, public Supplementable<Scr iptExecutionContext> { 52 class ScriptExecutionContext : public SecurityContext, public Supplementable<Scr iptExecutionContext> {
53 public: 53 public:
54 ScriptExecutionContext(); 54 ScriptExecutionContext();
55 virtual ~ScriptExecutionContext(); 55 virtual ~ScriptExecutionContext();
56 56
57 virtual bool isDocument() const { return false; } 57 virtual bool isDocument() const { return false; }
58 virtual bool isWorkerContext() const { return false; } 58 virtual bool isWorkerGlobalScope() const { return false; }
59 59
60 virtual bool isContextThread() const { return true; } 60 virtual bool isContextThread() const { return true; }
61 virtual bool isJSExecutionForbidden() const = 0; 61 virtual bool isJSExecutionForbidden() const = 0;
62 62
63 const KURL& url() const { return virtualURL(); } 63 const KURL& url() const { return virtualURL(); }
64 KURL completeURL(const String& url) const { return virtualCompleteURL(url); } 64 KURL completeURL(const String& url) const { return virtualCompleteURL(url); }
65 65
66 virtual String userAgent(const KURL&) const = 0; 66 virtual String userAgent(const KURL&) const = 0;
67 67
68 virtual void disableEval(const String& errorMessage) = 0; 68 virtual void disableEval(const String& errorMessage) = 0;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool m_activeDOMObjectsAreStopped; 189 bool m_activeDOMObjectsAreStopped;
190 190
191 OwnPtr<PublicURLManager> m_publicURLManager; 191 OwnPtr<PublicURLManager> m_publicURLManager;
192 192
193 RefPtr<DatabaseContext> m_databaseContext; 193 RefPtr<DatabaseContext> m_databaseContext;
194 }; 194 };
195 195
196 } // namespace WebCore 196 } // namespace WebCore
197 197
198 #endif // ScriptExecutionContext_h 198 #endif // ScriptExecutionContext_h
OLDNEW
« no previous file with comments | « Source/core/dom/MessagePort.cpp ('k') | Source/core/dom/ScriptExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698