OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 return m_activityLogger; | 99 return m_activityLogger; |
100 } | 100 } |
101 | 101 |
102 void setActivityLogger(V8DOMActivityLogger* logger) | 102 void setActivityLogger(V8DOMActivityLogger* logger) |
103 { | 103 { |
104 m_activityLogger = logger; | 104 m_activityLogger = logger; |
105 } | 105 } |
106 | 106 |
107 private: | 107 private: |
108 explicit V8PerContextData(v8::Persistent<v8::Context> context) | 108 explicit V8PerContextData(v8::Persistent<v8::Context> context) |
109 : m_context(context) | 109 : m_activityLogger(0), m_context(context) |
110 { | 110 { |
111 } | 111 } |
112 | 112 |
113 void dispose(); | 113 void dispose(); |
114 | 114 |
115 v8::Local<v8::Object> createWrapperFromCacheSlowCase(WrapperTypeInfo*); | 115 v8::Local<v8::Object> createWrapperFromCacheSlowCase(WrapperTypeInfo*); |
116 v8::Local<v8::Function> constructorForTypeSlowCase(WrapperTypeInfo*); | 116 v8::Local<v8::Function> constructorForTypeSlowCase(WrapperTypeInfo*); |
117 | 117 |
118 // For each possible type of wrapper, we keep a boilerplate object. | 118 // For each possible type of wrapper, we keep a boilerplate object. |
119 // The boilerplate is used to create additional wrappers of the same type. | 119 // The boilerplate is used to create additional wrappers of the same type. |
(...skipping 15 matching lines...) Expand all Loading... |
135 | 135 |
136 class V8PerContextDebugData { | 136 class V8PerContextDebugData { |
137 public: | 137 public: |
138 static bool setContextDebugData(v8::Handle<v8::Context>, const char* worldNa
me, int debugId); | 138 static bool setContextDebugData(v8::Handle<v8::Context>, const char* worldNa
me, int debugId); |
139 static int contextDebugId(v8::Handle<v8::Context>); | 139 static int contextDebugId(v8::Handle<v8::Context>); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace WebCore | 142 } // namespace WebCore |
143 | 143 |
144 #endif // V8PerContextData_h | 144 #endif // V8PerContextData_h |
OLD | NEW |