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

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

Issue 2218943002: Introduce ServiceWorker.EventDispatchingDelay UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated mpearson@'s comment Created 4 years, 3 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 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/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h" 10 #include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class ThenFunction; 57 class ThenFunction;
58 58
59 WaitUntilObserver(ExecutionContext*, EventType, int eventID); 59 WaitUntilObserver(ExecutionContext*, EventType, int eventID);
60 60
61 void reportError(const ScriptValue&); 61 void reportError(const ScriptValue&);
62 62
63 void consumeWindowInteraction(TimerBase*); 63 void consumeWindowInteraction(TimerBase*);
64 64
65 EventType m_type; 65 EventType m_type;
66 int m_eventID; 66 int m_eventID;
67 int m_pendingActivity; 67 int m_pendingActivity = 0;
68 bool m_hasError; 68 bool m_hasError = false;
69 bool m_eventDispatched; 69 bool m_eventDispatched = false;
70 double m_eventDispatchTime = 0;
70 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer; 71 Timer<WaitUntilObserver> m_consumeWindowInteractionTimer;
71 }; 72 };
72 73
73 } // namespace blink 74 } // namespace blink
74 75
75 #endif // WaitUntilObserver_h 76 #endif // WaitUntilObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698