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

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

Issue 2433273003: service worker: Plumb NavigationPreloadManager.enable/disable to browser-side (Closed)
Patch Set: comments 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 NavigationPreloadManager_h 5 #ifndef NavigationPreloadManager_h
6 #define NavigationPreloadManager_h 6 #define NavigationPreloadManager_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 16 matching lines...) Expand all
27 ScriptPromise enable(ScriptState*); 27 ScriptPromise enable(ScriptState*);
28 ScriptPromise disable(ScriptState*); 28 ScriptPromise disable(ScriptState*);
29 ScriptPromise setHeaderValue(ScriptState*, const String& value); 29 ScriptPromise setHeaderValue(ScriptState*, const String& value);
30 ScriptPromise getState(ScriptState*); 30 ScriptPromise getState(ScriptState*);
31 31
32 DECLARE_TRACE(); 32 DECLARE_TRACE();
33 33
34 private: 34 private:
35 explicit NavigationPreloadManager(ServiceWorkerRegistration*); 35 explicit NavigationPreloadManager(ServiceWorkerRegistration*);
36 36
37 ScriptPromise setEnabled(bool enable, ScriptState*);
38
37 Member<ServiceWorkerRegistration> m_registration; 39 Member<ServiceWorkerRegistration> m_registration;
38 }; 40 };
39 41
40 } // namespace blink 42 } // namespace blink
41 43
42 #endif // NavigationPreloadManager_h 44 #endif // NavigationPreloadManager_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698