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

Side by Side Diff: third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 UnderlyingSourceBase_h 5 #ifndef UnderlyingSourceBase_h
6 #define UnderlyingSourceBase_h 6 #define UnderlyingSourceBase_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 28 matching lines...) Expand all
39 ScriptPromise cancelWrapper(ScriptState*, ScriptValue reason); 39 ScriptPromise cancelWrapper(ScriptState*, ScriptValue reason);
40 virtual ScriptPromise cancel(ScriptState*, ScriptValue reason); 40 virtual ScriptPromise cancel(ScriptState*, ScriptValue reason);
41 41
42 void notifyLockAcquired(); 42 void notifyLockAcquired();
43 void notifyLockReleased(); 43 void notifyLockReleased();
44 44
45 // ScriptWrappable 45 // ScriptWrappable
46 bool hasPendingActivity() const; 46 bool hasPendingActivity() const;
47 47
48 // ContextLifecycleObserver 48 // ContextLifecycleObserver
49 void contextDestroyed() override; 49 void contextDestroyed(ExecutionContext*) override;
50 50
51 protected: 51 protected:
52 explicit UnderlyingSourceBase(ScriptState* scriptState) 52 explicit UnderlyingSourceBase(ScriptState* scriptState)
53 : ContextLifecycleObserver(scriptState->getExecutionContext()) {} 53 : ContextLifecycleObserver(scriptState->getExecutionContext()) {}
54 54
55 ReadableStreamController* controller() const { return m_controller; } 55 ReadableStreamController* controller() const { return m_controller; }
56 56
57 private: 57 private:
58 Member<ReadableStreamController> m_controller; 58 Member<ReadableStreamController> m_controller;
59 bool m_isStreamLocked = false; 59 bool m_isStreamLocked = false;
60 }; 60 };
61 61
62 } // namespace blink 62 } // namespace blink
63 63
64 #endif // UnderlyingSourceBase_h 64 #endif // UnderlyingSourceBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/streams/Stream.cpp ('k') | third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698