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

Side by Side Diff: Source/bindings/core/v8/ExceptionState.h

Issue 1236473002: Fix virtual/override/final usage in Source/bindings/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
OLDNEW
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 v8::Isolate* m_isolate; 135 v8::Isolate* m_isolate;
136 #if ENABLE(ASSERT) 136 #if ENABLE(ASSERT)
137 OnStackObjectChecker m_onStackObjectChecker; 137 OnStackObjectChecker m_onStackObjectChecker;
138 #endif 138 #endif
139 }; 139 };
140 140
141 // Used if exceptions can/should not be directly thrown. 141 // Used if exceptions can/should not be directly thrown.
142 class CORE_EXPORT NonThrowableExceptionState final : public ExceptionState { 142 class CORE_EXPORT NonThrowableExceptionState final : public ExceptionState {
143 public: 143 public:
144 NonThrowableExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { } 144 NonThrowableExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { }
145 virtual void throwDOMException(const ExceptionCode&, const String& message) override; 145 void throwDOMException(const ExceptionCode&, const String& message) override ;
146 virtual void throwTypeError(const String& message = String()) override; 146 void throwTypeError(const String& message = String()) override;
147 virtual void throwSecurityError(const String& sanitizedMessage, const String & unsanitizedMessage = String()) override; 147 void throwSecurityError(const String& sanitizedMessage, const String& unsani tizedMessage = String()) override;
148 virtual void throwRangeError(const String& message) override; 148 void throwRangeError(const String& message) override;
149 }; 149 };
150 150
151 // Used if any exceptions thrown are ignorable. 151 // Used if any exceptions thrown are ignorable.
152 class CORE_EXPORT TrackExceptionState final : public ExceptionState { 152 class CORE_EXPORT TrackExceptionState final : public ExceptionState {
153 public: 153 public:
154 TrackExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { } 154 TrackExceptionState(): ExceptionState(ExceptionState::UnknownContext, 0, 0, v8::Local<v8::Object>(), v8::Isolate::GetCurrent()) { }
155 virtual void throwDOMException(const ExceptionCode&, const String& message) override; 155 void throwDOMException(const ExceptionCode&, const String& message) override ;
156 virtual void throwTypeError(const String& message = String()) override; 156 void throwTypeError(const String& message = String()) override;
157 virtual void throwSecurityError(const String& sanitizedMessage, const String & unsanitizedMessage = String()) override; 157 void throwSecurityError(const String& sanitizedMessage, const String& unsani tizedMessage = String()) override;
158 virtual void throwRangeError(const String& message) override; 158 void throwRangeError(const String& message) override;
159 }; 159 };
160 160
161 } // namespace blink 161 } // namespace blink
162 162
163 #endif // ExceptionState_h 163 #endif // ExceptionState_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/CallbackPromiseAdapter.h ('k') | Source/bindings/core/v8/ExceptionStatePlaceholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698