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

Side by Side Diff: Source/WebCore/dom/ScriptExecutionContext.h

Issue 6519013: Merge 77563 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 10 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
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual bool isContextThread() const = 0; 84 virtual bool isContextThread() const = 0;
85 virtual bool isJSExecutionTerminated() const = 0; 85 virtual bool isJSExecutionTerminated() const = 0;
86 86
87 const KURL& url() const { return virtualURL(); } 87 const KURL& url() const { return virtualURL(); }
88 KURL completeURL(const String& url) const { return virtualCompleteURL(ur l); } 88 KURL completeURL(const String& url) const { return virtualCompleteURL(ur l); }
89 89
90 virtual String userAgent(const KURL&) const = 0; 90 virtual String userAgent(const KURL&) const = 0;
91 91
92 SecurityOrigin* securityOrigin() const { return m_securityOrigin.get(); } 92 SecurityOrigin* securityOrigin() const { return m_securityOrigin.get(); }
93 93
94 bool sanitizeScriptError(String& errorMessage, int& lineNumber, String& sourceURL);
94 void reportException(const String& errorMessage, int lineNumber, const S tring& sourceURL, PassRefPtr<ScriptCallStack>); 95 void reportException(const String& errorMessage, int lineNumber, const S tring& sourceURL, PassRefPtr<ScriptCallStack>);
95 virtual void addMessage(MessageSource, MessageType, MessageLevel, const String& message, unsigned lineNumber, const String& sourceURL, PassRefPtr<Script CallStack>) = 0; 96 virtual void addMessage(MessageSource, MessageType, MessageLevel, const String& message, unsigned lineNumber, const String& sourceURL, PassRefPtr<Script CallStack>) = 0;
96 97
97 // Active objects are not garbage collected even if inaccessible, e.g. b ecause their activity may result in callbacks being invoked. 98 // Active objects are not garbage collected even if inaccessible, e.g. b ecause their activity may result in callbacks being invoked.
98 bool canSuspendActiveDOMObjects(); 99 bool canSuspendActiveDOMObjects();
99 // Active objects can be asked to suspend even if canSuspendActiveDOMObj ects() returns 'false' - 100 // Active objects can be asked to suspend even if canSuspendActiveDOMObj ects() returns 'false' -
100 // step-by-step JS debugging is one example. 101 // step-by-step JS debugging is one example.
101 void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension); 102 void suspendActiveDOMObjects(ActiveDOMObject::ReasonForSuspension);
102 void resumeActiveDOMObjects(); 103 void resumeActiveDOMObjects();
103 void stopActiveDOMObjects(); 104 void stopActiveDOMObjects();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 195
195 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM) 196 #if ENABLE(BLOB) || ENABLE(FILE_SYSTEM)
196 RefPtr<FileThread> m_fileThread; 197 RefPtr<FileThread> m_fileThread;
197 #endif 198 #endif
198 }; 199 };
199 200
200 } // namespace WebCore 201 } // namespace WebCore
201 202
202 203
203 #endif // ScriptExecutionContext_h 204 #endif // ScriptExecutionContext_h
OLDNEW
« no previous file with comments | « Source/WebCore/bindings/v8/WorkerContextExecutionProxy.cpp ('k') | Source/WebCore/dom/ScriptExecutionContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698