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

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

Issue 469773002: Cleanup blink:: prefix usage in Source/core/modules/[mediasource/*.cpp to websockets/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 #include "config.h" 5 #include "config.h"
6 #include "modules/serviceworkers/WaitUntilObserver.h" 6 #include "modules/serviceworkers/WaitUntilObserver.h"
7 7
8 #include "bindings/core/v8/ScriptFunction.h" 8 #include "bindings/core/v8/ScriptFunction.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptValue.h" 10 #include "bindings/core/v8/ScriptValue.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 ++m_pendingActivity; 104 ++m_pendingActivity;
105 } 105 }
106 106
107 void WaitUntilObserver::decrementPendingActivity() 107 void WaitUntilObserver::decrementPendingActivity()
108 { 108 {
109 ASSERT(m_pendingActivity > 0); 109 ASSERT(m_pendingActivity > 0);
110 if (!executionContext() || (!m_hasError && --m_pendingActivity)) 110 if (!executionContext() || (!m_hasError && --m_pendingActivity))
111 return; 111 return;
112 112
113 ServiceWorkerGlobalScopeClient* client = ServiceWorkerGlobalScopeClient::fro m(executionContext()); 113 ServiceWorkerGlobalScopeClient* client = ServiceWorkerGlobalScopeClient::fro m(executionContext());
114 blink::WebServiceWorkerEventResult result = m_hasError ? blink::WebServiceWo rkerEventResultRejected : blink::WebServiceWorkerEventResultCompleted; 114 WebServiceWorkerEventResult result = m_hasError ? WebServiceWorkerEventResul tRejected : WebServiceWorkerEventResultCompleted;
115 switch (m_type) { 115 switch (m_type) {
116 case Activate: 116 case Activate:
117 client->didHandleActivateEvent(m_eventID, result); 117 client->didHandleActivateEvent(m_eventID, result);
118 break; 118 break;
119 case Install: 119 case Install:
120 client->didHandleInstallEvent(m_eventID, result); 120 client->didHandleInstallEvent(m_eventID, result);
121 break; 121 break;
122 } 122 }
123 observeContext(0); 123 observeContext(0);
124 } 124 }
125 125
126 } // namespace blink 126 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerError.cpp ('k') | Source/modules/vibration/NavigatorVibration.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698