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

Side by Side Diff: Source/bindings/v8/ScriptPromiseResolverWithContext.cpp

Issue 236713003: [ServiceWorker, PushMessaging] Use ScriptPromiseResolverWithContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 "bindings/v8/ScriptPromiseResolverWithContext.h" 6 #include "bindings/v8/ScriptPromiseResolverWithContext.h"
7 7
8 namespace WebCore { 8 namespace WebCore {
9 9
10 ScriptPromiseResolverWithContext::ScriptPromiseResolverWithContext(NewScriptStat e* scriptState) 10 ScriptPromiseResolverWithContext::ScriptPromiseResolverWithContext(NewScriptStat e* scriptState)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 m_resolver->reject(m_value.newLocal(m_scriptState->isolate())); 44 m_resolver->reject(m_value.newLocal(m_scriptState->isolate()));
45 } 45 }
46 m_state = ResolvedOrRejected; 46 m_state = ResolvedOrRejected;
47 clear(); 47 clear();
48 } 48 }
49 49
50 void ScriptPromiseResolverWithContext::clear() 50 void ScriptPromiseResolverWithContext::clear()
51 { 51 {
52 m_resolver.clear(); 52 m_resolver.clear();
53 m_value.clear(); 53 m_value.clear();
54 m_scriptState.clear();
55 } 54 }
56 55
57 } // namespace WebCore 56 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptPromiseResolverWithContext.h ('k') | Source/modules/push_messaging/PushManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698