| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "v8.h" | 32 #include "v8.h" |
| 33 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace WebCore { |
| 36 | 36 |
| 37 class DOMRequestState { | 37 class DOMRequestState { |
| 38 public: | 38 public: |
| 39 explicit DOMRequestState(ScriptExecutionContext* scriptExecutionContext) | 39 explicit DOMRequestState(ScriptExecutionContext* scriptExecutionContext) |
| 40 : m_scriptExecutionContext(scriptExecutionContext) | 40 : m_scriptExecutionContext(scriptExecutionContext) |
| 41 , m_world(DOMWrapperWorld::current()) | 41 , m_world(DOMWrapperWorld::current()) |
| 42 , m_isolate(isolateForScriptExecutionContext(scriptExecutionContext)) | 42 , m_isolate(toIsolate(scriptExecutionContext)) |
| 43 { | 43 { |
| 44 } | 44 } |
| 45 | 45 |
| 46 void clear() | 46 void clear() |
| 47 { | 47 { |
| 48 m_scriptExecutionContext = 0; | 48 m_scriptExecutionContext = 0; |
| 49 m_world.clear(); | 49 m_world.clear(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 class Scope { | 52 class Scope { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 72 } | 72 } |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 ScriptExecutionContext* m_scriptExecutionContext; | 75 ScriptExecutionContext* m_scriptExecutionContext; |
| 76 RefPtr<DOMWrapperWorld> m_world; | 76 RefPtr<DOMWrapperWorld> m_world; |
| 77 v8::Isolate* m_isolate; | 77 v8::Isolate* m_isolate; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } | 80 } |
| 81 #endif | 81 #endif |
| OLD | NEW |