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

Side by Side Diff: Source/modules/serviceworkers/WaitUntilObserver.h

Issue 901663005: Revert r189385 "Remove LifecycleContext" and r189391, r189530, r189456 that block it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WaitUntilObserver_h 5 #ifndef WaitUntilObserver_h
6 #define WaitUntilObserver_h 6 #define WaitUntilObserver_h
7 7
8 #include "core/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 9 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
10 #include "platform/Timer.h"
11 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
12 #include "wtf/RefCounted.h" 11 #include "wtf/RefCounted.h"
13 12
14 namespace blink { 13 namespace blink {
15 14
16 class ExceptionState; 15 class ExceptionState;
17 class ExecutionContext; 16 class ExecutionContext;
18 class ScriptState; 17 class ScriptState;
19 class ScriptValue; 18 class ScriptValue;
20 19
(...skipping 23 matching lines...) Expand all
44 private: 43 private:
45 class ThenFunction; 44 class ThenFunction;
46 45
47 WaitUntilObserver(ExecutionContext*, EventType, int eventID); 46 WaitUntilObserver(ExecutionContext*, EventType, int eventID);
48 47
49 void reportError(const ScriptValue&); 48 void reportError(const ScriptValue&);
50 49
51 void incrementPendingActivity(); 50 void incrementPendingActivity();
52 void decrementPendingActivity(); 51 void decrementPendingActivity();
53 52
54 void consumeWindowInteraction(Timer<WaitUntilObserver>*);
55
56 EventType m_type; 53 EventType m_type;
57 int m_eventID; 54 int m_eventID;
58 int m_pendingActivity; 55 int m_pendingActivity;
59 bool m_hasError; 56 bool m_hasError;
60 bool m_eventDispatched; 57 bool m_eventDispatched;
61 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer;
62 }; 58 };
63 59
64 } // namespace blink 60 } // namespace blink
65 61
66 #endif // WaitUntilObserver_h 62 #endif // WaitUntilObserver_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp ('k') | Source/modules/serviceworkers/WaitUntilObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698