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

Side by Side Diff: Source/modules/serviceworkers/CacheStorage.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/CacheStorage.h" 6 #include "modules/serviceworkers/CacheStorage.h"
7 7
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 8 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "modules/serviceworkers/Cache.h" 10 #include "modules/serviceworkers/Cache.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 private: 70 private:
71 const RefPtr<ScriptPromiseResolver> m_resolver; 71 const RefPtr<ScriptPromiseResolver> m_resolver;
72 }; 72 };
73 73
74 class CacheStorageKeysCallbacks : public WebServiceWorkerCacheStorage::CacheStor ageKeysCallbacks { 74 class CacheStorageKeysCallbacks : public WebServiceWorkerCacheStorage::CacheStor ageKeysCallbacks {
75 WTF_MAKE_NONCOPYABLE(CacheStorageKeysCallbacks); 75 WTF_MAKE_NONCOPYABLE(CacheStorageKeysCallbacks);
76 public: 76 public:
77 explicit CacheStorageKeysCallbacks(PassRefPtr<ScriptPromiseResolver> resolve r) : m_resolver(resolver) { } 77 explicit CacheStorageKeysCallbacks(PassRefPtr<ScriptPromiseResolver> resolve r) : m_resolver(resolver) { }
78 virtual ~CacheStorageKeysCallbacks() { } 78 virtual ~CacheStorageKeysCallbacks() { }
79 79
80 virtual void onSuccess(blink::WebVector<blink::WebString>* keys) OVERRIDE 80 virtual void onSuccess(WebVector<WebString>* keys) OVERRIDE
81 { 81 {
82 Vector<String> wtfKeys; 82 Vector<String> wtfKeys;
83 for (size_t i = 0; i < keys->size(); ++i) 83 for (size_t i = 0; i < keys->size(); ++i)
84 wtfKeys.append((*keys)[i]); 84 wtfKeys.append((*keys)[i]);
85 m_resolver->resolve(wtfKeys); 85 m_resolver->resolve(wtfKeys);
86 } 86 }
87 87
88 virtual void onError(WebServiceWorkerCacheError* reason) OVERRIDE 88 virtual void onError(WebServiceWorkerCacheError* reason) OVERRIDE
89 { 89 {
90 m_resolver->reject(CacheErrorToString(*reason)); 90 m_resolver->reject(CacheErrorToString(*reason));
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 return promise; 166 return promise;
167 } 167 }
168 168
169 CacheStorage::CacheStorage(WebServiceWorkerCacheStorage* webCacheStorage) : m_we bCacheStorage(webCacheStorage) 169 CacheStorage::CacheStorage(WebServiceWorkerCacheStorage* webCacheStorage) : m_we bCacheStorage(webCacheStorage)
170 { 170 {
171 ScriptWrappable::init(this); 171 ScriptWrappable::init(this);
172 } 172 }
173 173
174 } // namespace blink 174 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientationDispatcher.cpp ('k') | Source/modules/serviceworkers/Client.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698