OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |