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

Side by Side Diff: webkit/pending/ScriptController.h

Issue 4097: Implement better JS exception handling by abstracting KJS::ExecState into an ... (Closed) Base URL: svn://chrome-svn/chrome/branches/chrome_webkit_merge_branch/
Patch Set: '' Created 12 years, 2 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 | « webkit/pending/NodeIterator.cpp ('k') | webkit/pending/Traversal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008, Google Inc. 1 // Copyright 2008, Google Inc.
2 // All rights reserved. 2 // 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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * 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 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // Tell the proxy that document.domain is set. 230 // Tell the proxy that document.domain is set.
231 static void setDomain(Frame* target, const String& newDomain); 231 static void setDomain(Frame* target, const String& newDomain);
232 232
233 // Pass command-line flags to the JS engine 233 // Pass command-line flags to the JS engine
234 static void setFlags(const char* str, int length); 234 static void setFlags(const char* str, int length);
235 235
236 // Protect and unprotect the JS wrapper from garbage collected. 236 // Protect and unprotect the JS wrapper from garbage collected.
237 static void gcProtectJSWrapper(void* object); 237 static void gcProtectJSWrapper(void* object);
238 static void gcUnprotectJSWrapper(void* object); 238 static void gcUnprotectJSWrapper(void* object);
239 239
240 // Returns a non-exception code object.
241 static JSException NoException();
242 // Returns true if the parameter is a JS exception object.
243 static bool IsException(JSException);
244
245 // Get/Set RecordPlaybackMode flag. 240 // Get/Set RecordPlaybackMode flag.
246 // This is a special mode where JS helps the browser implement 241 // This is a special mode where JS helps the browser implement
247 // playback/record mode. Generally, in this mode, some functions 242 // playback/record mode. Generally, in this mode, some functions
248 // of client-side randomness are removed. For example, in 243 // of client-side randomness are removed. For example, in
249 // this mode Math.random() and Date.getTime() may not return 244 // this mode Math.random() and Date.getTime() may not return
250 // values which vary. 245 // values which vary.
251 static bool RecordPlaybackMode() { return m_recordPlaybackMode; } 246 static bool RecordPlaybackMode() { return m_recordPlaybackMode; }
252 static void setRecordPlaybackMode(bool value) { m_recordPlaybackMode = value ; } 247 static void setRecordPlaybackMode(bool value) { m_recordPlaybackMode = value ; }
253 248
254 void finishedWithEvent(Event*); 249 void finishedWithEvent(Event*);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 JSInstanceHolder& operator=(JSInstance); 317 JSInstanceHolder& operator=(JSInstance);
323 static JSInstance EmptyInstance(); 318 static JSInstance EmptyInstance();
324 319
325 private: 320 private:
326 JSPersistentInstance m_instance; 321 JSPersistentInstance m_instance;
327 }; 322 };
328 323
329 } // namespace WebCore 324 } // namespace WebCore
330 325
331 #endif // ScriptController_h 326 #endif // ScriptController_h
OLDNEW
« no previous file with comments | « webkit/pending/NodeIterator.cpp ('k') | webkit/pending/Traversal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698