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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef V8PerIsolateData_h | 26 #ifndef V8PerIsolateData_h |
27 #define V8PerIsolateData_h | 27 #define V8PerIsolateData_h |
28 | 28 |
29 #include "bindings/core/v8/ScopedPersistent.h" | 29 #include "bindings/core/v8/ScopedPersistent.h" |
30 #include "bindings/core/v8/ScriptState.h" | 30 #include "bindings/core/v8/ScriptState.h" |
31 #include "bindings/core/v8/V8HiddenValue.h" | 31 #include "bindings/core/v8/V8HiddenValue.h" |
32 #include "bindings/core/v8/WrapperTypeInfo.h" | 32 #include "bindings/core/v8/WrapperTypeInfo.h" |
33 #include "gin/public/gin_embedders.h" | |
34 #include "gin/public/isolate_holder.h" | 33 #include "gin/public/isolate_holder.h" |
35 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" | 34 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" |
36 #include "wtf/Forward.h" | |
37 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
38 #include "wtf/OwnPtr.h" | 36 #include "wtf/OwnPtr.h" |
39 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
40 #include <v8.h> | 38 #include <v8.h> |
41 | 39 |
42 namespace blink { | 40 namespace blink { |
43 | 41 |
44 class DOMDataStore; | 42 class DOMDataStore; |
45 class GCEventData; | 43 class GCEventData; |
46 class StringCache; | 44 class StringCache; |
47 struct WrapperTypeInfo; | 45 struct WrapperTypeInfo; |
48 | 46 |
49 class ExternalStringVisitor; | |
50 | |
51 typedef WTF::Vector<DOMDataStore*> DOMDataStoreList; | 47 typedef WTF::Vector<DOMDataStore*> DOMDataStoreList; |
52 | 48 |
53 class V8PerIsolateData { | 49 class V8PerIsolateData { |
54 public: | 50 public: |
55 static v8::Isolate* initialize(); | 51 static v8::Isolate* initialize(); |
56 static V8PerIsolateData* from(v8::Isolate* isolate) | 52 static V8PerIsolateData* from(v8::Isolate* isolate) |
57 { | 53 { |
58 ASSERT(isolate); | 54 ASSERT(isolate); |
59 ASSERT(isolate->GetData(gin::kEmbedderBlink)); | 55 ASSERT(isolate->GetData(gin::kEmbedderBlink)); |
60 return static_cast<V8PerIsolateData*>(isolate->GetData(gin::kEmbedderBli
nk)); | 56 return static_cast<V8PerIsolateData*>(isolate->GetData(gin::kEmbedderBli
nk)); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 #endif | 133 #endif |
138 OwnPtr<GCEventData> m_gcEventData; | 134 OwnPtr<GCEventData> m_gcEventData; |
139 bool m_performingMicrotaskCheckpoint; | 135 bool m_performingMicrotaskCheckpoint; |
140 | 136 |
141 OwnPtr<IDBPendingTransactionMonitor> m_idbPendingTransactionMonitor; | 137 OwnPtr<IDBPendingTransactionMonitor> m_idbPendingTransactionMonitor; |
142 }; | 138 }; |
143 | 139 |
144 } // namespace blink | 140 } // namespace blink |
145 | 141 |
146 #endif // V8PerIsolateData_h | 142 #endif // V8PerIsolateData_h |
OLD | NEW |