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

Side by Side Diff: content/child/service_worker/web_service_worker_impl.h

Issue 2388023002: service worker: navigation preload basic setters/getters and flag
Patch Set: idl Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // blink::WebServiceWorker overrides. 46 // blink::WebServiceWorker overrides.
47 void setProxy(blink::WebServiceWorkerProxy* proxy) override; 47 void setProxy(blink::WebServiceWorkerProxy* proxy) override;
48 blink::WebServiceWorkerProxy* proxy() override; 48 blink::WebServiceWorkerProxy* proxy() override;
49 blink::WebURL url() const override; 49 blink::WebURL url() const override;
50 blink::WebServiceWorkerState state() const override; 50 blink::WebServiceWorkerState state() const override;
51 void postMessage(blink::WebServiceWorkerProvider* provider, 51 void postMessage(blink::WebServiceWorkerProvider* provider,
52 const blink::WebString& message, 52 const blink::WebString& message,
53 const blink::WebSecurityOrigin& source_origin, 53 const blink::WebSecurityOrigin& source_origin,
54 blink::WebMessagePortChannelArray* channels) override; 54 blink::WebMessagePortChannelArray* channels) override;
55 void setNavigationPreload(const blink::WebString& value,
56 WebSetNavigationPreloadCallbacks*) override;
57 void getNavigationPreload(WebGetNavigationPreloadCallbacks*) override;
55 void terminate() override; 58 void terminate() override;
56 59
57 // Creates WebServiceWorker::Handle object that owns a reference to the given 60 // Creates WebServiceWorker::Handle object that owns a reference to the given
58 // WebServiceWorkerImpl object. 61 // WebServiceWorkerImpl object.
59 static std::unique_ptr<blink::WebServiceWorker::Handle> CreateHandle( 62 static std::unique_ptr<blink::WebServiceWorker::Handle> CreateHandle(
60 const scoped_refptr<WebServiceWorkerImpl>& worker); 63 const scoped_refptr<WebServiceWorkerImpl>& worker);
61 64
62 private: 65 private:
63 friend class base::RefCounted<WebServiceWorkerImpl>; 66 friend class base::RefCounted<WebServiceWorkerImpl>;
64 ~WebServiceWorkerImpl() override; 67 ~WebServiceWorkerImpl() override;
65 68
66 std::unique_ptr<ServiceWorkerHandleReference> handle_ref_; 69 std::unique_ptr<ServiceWorkerHandleReference> handle_ref_;
67 blink::WebServiceWorkerState state_; 70 blink::WebServiceWorkerState state_;
68 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 71 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
69 blink::WebServiceWorkerProxy* proxy_; 72 blink::WebServiceWorkerProxy* proxy_;
70 73
71 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerImpl); 74 DISALLOW_COPY_AND_ASSIGN(WebServiceWorkerImpl);
72 }; 75 };
73 76
74 } // namespace content 77 } // namespace content
75 78
76 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_ 79 #endif // CONTENT_CHILD_SERVICE_WORKER_WEB_SERVICE_WORKER_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/service_worker/service_worker_dispatcher.cc ('k') | content/child/service_worker/web_service_worker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698