OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 typedef int ExceptionCode; | 45 typedef int ExceptionCode; |
46 class ScriptPromiseResolver; | 46 class ScriptPromiseResolver; |
47 class ScriptState; | 47 class ScriptState; |
48 | 48 |
49 // ExceptionState is a scope-like class and provides a way to throw an exception | 49 // ExceptionState is a scope-like class and provides a way to throw an exception |
50 // with an option to cancel it. An exception message may be auto-generated. | 50 // with an option to cancel it. An exception message may be auto-generated. |
51 // You can convert an exception to a reject promise. | 51 // You can convert an exception to a reject promise. |
52 class CORE_EXPORT ExceptionState { | 52 class CORE_EXPORT ExceptionState { |
53 STACK_ALLOCATED(); | |
jbroman
2016/09/06 20:39:27
This change was made because the blink-gc plugin w
haraken
2016/09/07 00:27:54
Hmm, I'd like to keep the STACK_ALLOCATED. STACK_A
jbroman
2016/09/07 01:03:34
Isn't that what DISALLOW_NEW is for? If not, what
jbroman
2016/09/07 01:13:16
Also, the comment says:
// Classes that contain r
| |
54 WTF_MAKE_NONCOPYABLE(ExceptionState); | 53 WTF_MAKE_NONCOPYABLE(ExceptionState); |
55 public: | 54 public: |
56 enum ContextType { | 55 enum ContextType { |
57 ConstructionContext, | 56 ConstructionContext, |
58 ExecutionContext, | 57 ExecutionContext, |
59 DeletionContext, | 58 DeletionContext, |
60 GetterContext, | 59 GetterContext, |
61 SetterContext, | 60 SetterContext, |
62 EnumerationContext, | 61 EnumerationContext, |
63 QueryContext, | 62 QueryContext, |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
182 void throwDOMException(const ExceptionCode&, const String& message) override ; | 181 void throwDOMException(const ExceptionCode&, const String& message) override ; |
183 void throwTypeError(const String& message) override; | 182 void throwTypeError(const String& message) override; |
184 void throwSecurityError(const String& sanitizedMessage, const String& unsani tizedMessage) override; | 183 void throwSecurityError(const String& sanitizedMessage, const String& unsani tizedMessage) override; |
185 void throwRangeError(const String& message) override; | 184 void throwRangeError(const String& message) override; |
186 void rethrowV8Exception(v8::Local<v8::Value>) override; | 185 void rethrowV8Exception(v8::Local<v8::Value>) override; |
187 }; | 186 }; |
188 | 187 |
189 } // namespace blink | 188 } // namespace blink |
190 | 189 |
191 #endif // ExceptionState_h | 190 #endif // ExceptionState_h |
OLD | NEW |