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

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

Issue 2451373003: service worker: Implement NavigationPreloadManager.setHeaderValue (Closed)
Patch Set: minimize deltas, rm uneeded change Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 NavigationPreloadCallbacks_h 5 #ifndef NavigationPreloadCallbacks_h
6 #define NavigationPreloadCallbacks_h 6 #define NavigationPreloadCallbacks_h
7 7
8 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h" 8 #include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 26 matching lines...) Expand all
37 37
38 // WebGetNavigationPreloadStateCallbacks interface. 38 // WebGetNavigationPreloadStateCallbacks interface.
39 void onSuccess(const WebNavigationPreloadState&) override; 39 void onSuccess(const WebNavigationPreloadState&) override;
40 void onError(const WebServiceWorkerError&) override; 40 void onError(const WebServiceWorkerError&) override;
41 41
42 private: 42 private:
43 Persistent<ScriptPromiseResolver> m_resolver; 43 Persistent<ScriptPromiseResolver> m_resolver;
44 WTF_MAKE_NONCOPYABLE(GetNavigationPreloadStateCallbacks); 44 WTF_MAKE_NONCOPYABLE(GetNavigationPreloadStateCallbacks);
45 }; 45 };
46 46
47 class SetNavigationPreloadHeaderCallbacks final
48 : public WebServiceWorkerRegistration::
49 WebSetNavigationPreloadHeaderCallbacks {
50 public:
51 SetNavigationPreloadHeaderCallbacks(ScriptPromiseResolver*);
haraken 2016/11/01 02:16:27 Add explicit.
falken 2016/11/01 06:46:15 Done, thanks.
52 ~SetNavigationPreloadHeaderCallbacks() override;
53
54 // WebSetNavigationPreloadHeaderCallbacks interface.
55 void onSuccess(void) override;
56 void onError(const WebServiceWorkerError&) override;
57
58 private:
59 Persistent<ScriptPromiseResolver> m_resolver;
60 WTF_MAKE_NONCOPYABLE(SetNavigationPreloadHeaderCallbacks);
61 };
62
47 } // namespace blink 63 } // namespace blink
48 64
49 #endif // NavigationPreloadCallbacks_h 65 #endif // NavigationPreloadCallbacks_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698