| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PropertyRegistration_h | 5 #ifndef PropertyRegistration_h |
| 6 #define PropertyRegistration_h | 6 #define PropertyRegistration_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
| 9 #include "wtf/text/WTFString.h" | 9 #include "wtf/text/WTFString.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class ExceptionState; | 13 class ExceptionState; |
| 14 class ExecutionContext; | 14 class ExecutionContext; |
| 15 class PropertyDescriptor; | 15 class PropertyDescriptor; |
| 16 | 16 |
| 17 class PropertyRegistration { | 17 class PropertyRegistration { |
| 18 STATIC_ONLY(PropertyRegistration); | 18 STATIC_ONLY(PropertyRegistration); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 static void registerProperty(ExecutionContext*, | 21 static void registerProperty(ExecutionContext*, |
| 22 const PropertyDescriptor&, | 22 const PropertyDescriptor&, |
| 23 ExceptionState&); | 23 ExceptionState&); |
| 24 static void unregisterProperty(ExecutionContext*, | |
| 25 const String&, | |
| 26 ExceptionState&); | |
| 27 }; | 24 }; |
| 28 | 25 |
| 29 } // namespace blink | 26 } // namespace blink |
| 30 | 27 |
| 31 #endif // PropertyRegistration_h | 28 #endif // PropertyRegistration_h |
| OLD | NEW |