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

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

Issue 210833004: Inform the client when the Service Worker rejects an install event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: sync Created 6 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 | 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 "public/platform/WebServiceWorkerEventResult.h"
10 #include "wtf/Forward.h" 11 #include "wtf/Forward.h"
11 #include "wtf/RefCounted.h" 12 #include "wtf/RefCounted.h"
12 13
13 namespace WebCore { 14 namespace WebCore {
14 15
15 class ExecutionContext; 16 class ExecutionContext;
16 class ScriptValue; 17 class ScriptValue;
17 18
18 // Created for each InstallPhaseEvent instance. 19 // Created for each InstallPhaseEvent instance.
19 class WaitUntilObserver FINAL : 20 class WaitUntilObserver FINAL :
(...skipping 17 matching lines...) Expand all
37 38
38 WaitUntilObserver(ExecutionContext*, int eventID); 39 WaitUntilObserver(ExecutionContext*, int eventID);
39 40
40 void reportError(const ScriptValue&); 41 void reportError(const ScriptValue&);
41 42
42 void incrementPendingActivity(); 43 void incrementPendingActivity();
43 void decrementPendingActivity(); 44 void decrementPendingActivity();
44 45
45 int m_eventID; 46 int m_eventID;
46 int m_pendingActivity; 47 int m_pendingActivity;
48 blink::WebServiceWorkerEventResult m_result;
47 }; 49 };
48 50
49 } // namespace WebCore 51 } // namespace WebCore
50 52
51 #endif // WaitUntilObserver_h 53 #endif // WaitUntilObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698