Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleTestUtil.h

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Creating an isolate in addition to GarbageCollection. 54 // Creating an isolate in addition to GarbageCollection.
55 ScriptExecution, 55 ScriptExecution,
56 // Creating an execution context in addition to ScriptExecution. 56 // Creating an execution context in addition to ScriptExecution.
57 WithExecutionContext, 57 WithExecutionContext,
58 }; 58 };
59 59
60 Thread(const char* name, InitializationPolicy = GarbageCollection); 60 Thread(const char* name, InitializationPolicy = GarbageCollection);
61 ~Thread(); 61 ~Thread();
62 62
63 WebThreadSupportingGC* thread() { return m_thread.get(); } 63 WebThreadSupportingGC* thread() { return m_thread.get(); }
64 ExecutionContext* executionContext() { return m_executionContext.get(); } 64 ExecutionContext* getExecutionContext() { return m_executionContext.get( ); }
65 ScriptState* scriptState() { 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 RefPtrWillBePersistent<NullExecutionContext> m_executionContext;
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 Deque<Command> m_commands; 421 Deque<Command> m_commands;
422 size_t m_offset; 422 size_t m_offset;
423 WebThread* m_readerThread; 423 WebThread* m_readerThread;
424 Client* m_client; 424 Client* m_client;
425 Result m_result; 425 Result m_result;
426 bool m_isHandleAttached; 426 bool m_isHandleAttached;
427 Mutex m_mutex; 427 Mutex m_mutex;
428 OwnPtr<WaitableEvent> m_detached; 428 OwnPtr<WaitableEvent> m_detached;
429 }; 429 };
430 430
431 Context* context() { return m_context.get(); } 431 Context* getContext() { return m_context.get(); }
432 432
433 private: 433 private:
434 class ReaderImpl; 434 class ReaderImpl;
435 435
436 ReplayingHandle(); 436 ReplayingHandle();
437 Reader* obtainReaderInternal(Client*) override; 437 Reader* obtainReaderInternal(Client*) override;
438 const char* debugName() const override { return "ReplayingHandle"; } 438 const char* debugName() const override { return "ReplayingHandle"; }
439 439
440 RefPtr<Context> m_context; 440 RefPtr<Context> m_context;
441 }; 441 };
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698