OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 21 matching lines...) Expand all Loading... |
32 #define DOMDataStore_h | 32 #define DOMDataStore_h |
33 | 33 |
34 #include "bindings/core/v8/DOMWrapperMap.h" | 34 #include "bindings/core/v8/DOMWrapperMap.h" |
35 #include "bindings/core/v8/DOMWrapperWorld.h" | 35 #include "bindings/core/v8/DOMWrapperWorld.h" |
36 #include "bindings/core/v8/ScriptWrappable.h" | 36 #include "bindings/core/v8/ScriptWrappable.h" |
37 #include "bindings/core/v8/WrapperTypeInfo.h" | 37 #include "bindings/core/v8/WrapperTypeInfo.h" |
38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
39 #include "wtf/StdLibExtras.h" | 39 #include "wtf/StdLibExtras.h" |
40 #include <v8.h> | 40 #include <v8.h> |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 class Node; | 44 class Node; |
45 | 45 |
46 class DOMDataStore { | 46 class DOMDataStore { |
47 WTF_MAKE_NONCOPYABLE(DOMDataStore); | 47 WTF_MAKE_NONCOPYABLE(DOMDataStore); |
48 public: | 48 public: |
49 explicit DOMDataStore(bool isMainWorld); | 49 explicit DOMDataStore(bool isMainWorld); |
50 ~DOMDataStore(); | 50 ~DOMDataStore(); |
51 | 51 |
52 static DOMDataStore& current(v8::Isolate*); | 52 static DOMDataStore& current(v8::Isolate*); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 // Verify our assumptions about the main world. | 200 // Verify our assumptions about the main world. |
201 ASSERT(wrappable); | 201 ASSERT(wrappable); |
202 ASSERT(!wrappable->containsWrapper() || !wrappable->isEqualTo(holder) ||
current(v8::Isolate::GetCurrent()).m_isMainWorld); | 202 ASSERT(!wrappable->containsWrapper() || !wrappable->isEqualTo(holder) ||
current(v8::Isolate::GetCurrent()).m_isMainWorld); |
203 return wrappable->isEqualTo(holder); | 203 return wrappable->isEqualTo(holder); |
204 } | 204 } |
205 | 205 |
206 bool m_isMainWorld; | 206 bool m_isMainWorld; |
207 DOMWrapperMap<void> m_wrapperMap; | 207 DOMWrapperMap<void> m_wrapperMap; |
208 }; | 208 }; |
209 | 209 |
210 } // namespace WebCore | 210 } // namespace blink |
211 | 211 |
212 #endif // DOMDataStore_h | 212 #endif // DOMDataStore_h |
OLD | NEW |