| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 DataConsumerHandleTestUtil_h | 5 #ifndef DataConsumerHandleTestUtil_h |
| 6 #define DataConsumerHandleTestUtil_h | 6 #define DataConsumerHandleTestUtil_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
| 9 #include "core/testing/NullExecutionContext.h" | 9 #include "core/testing/NullExecutionContext.h" |
| 10 #include "gin/public/isolate_holder.h" | 10 #include "gin/public/isolate_holder.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 ScriptState* getScriptState() { return m_scriptState.get(); } | 65 ScriptState* getScriptState() { return m_scriptState.get(); } |
| 66 v8::Isolate* isolate() { return m_isolateHolder->isolate(); } | 66 v8::Isolate* isolate() { return m_isolateHolder->isolate(); } |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 void initialize(); | 69 void initialize(); |
| 70 void shutdown(); | 70 void shutdown(); |
| 71 | 71 |
| 72 OwnPtr<WebThreadSupportingGC> m_thread; | 72 OwnPtr<WebThreadSupportingGC> m_thread; |
| 73 const InitializationPolicy m_initializationPolicy; | 73 const InitializationPolicy m_initializationPolicy; |
| 74 OwnPtr<WaitableEvent> m_waitableEvent; | 74 OwnPtr<WaitableEvent> m_waitableEvent; |
| 75 RefPtrWillBePersistent<NullExecutionContext> m_executionContext; | 75 Persistent<NullExecutionContext> m_executionContext; |
| 76 OwnPtr<gin::IsolateHolder> m_isolateHolder; | 76 OwnPtr<gin::IsolateHolder> m_isolateHolder; |
| 77 RefPtr<ScriptState> m_scriptState; | 77 RefPtr<ScriptState> m_scriptState; |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 class ThreadingTestBase : public ThreadSafeRefCounted<ThreadingTestBase> { | 80 class ThreadingTestBase : public ThreadSafeRefCounted<ThreadingTestBase> { |
| 81 public: | 81 public: |
| 82 virtual ~ThreadingTestBase() { } | 82 virtual ~ThreadingTestBase() { } |
| 83 | 83 |
| 84 class ThreadHolder; | 84 class ThreadHolder; |
| 85 | 85 |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 OwnPtr<HandleReadResult> m_result; | 534 OwnPtr<HandleReadResult> m_result; |
| 535 bool m_isDone; | 535 bool m_isDone; |
| 536 | 536 |
| 537 OwnPtr<T> m_handleReader; | 537 OwnPtr<T> m_handleReader; |
| 538 }; | 538 }; |
| 539 }; | 539 }; |
| 540 | 540 |
| 541 } // namespace blink | 541 } // namespace blink |
| 542 | 542 |
| 543 #endif // DataConsumerHandleTestUtil_h | 543 #endif // DataConsumerHandleTestUtil_h |
| OLD | NEW |