OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_IMPL_H_ |
6 #define CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_IMPL_H_ | 6 #define CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_IMPL_H_ |
7 | 7 |
8 #include "content/common/service_worker/service_worker_types.h" | 8 #include "content/common/service_worker/service_worker_types.h" |
9 #include "content/common/worker_url_loader_factory_provider.mojom.h" | 9 #include "content/common/worker_url_loader_factory_provider.mojom.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 void InitializeOnWorkerThread(base::SingleThreadTaskRunner*) override; | 41 void InitializeOnWorkerThread(base::SingleThreadTaskRunner*) override; |
42 std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override; | 42 std::unique_ptr<blink::WebURLLoader> CreateURLLoader() override; |
43 void WillSendRequest(blink::WebURLRequest&) override; | 43 void WillSendRequest(blink::WebURLRequest&) override; |
44 bool IsControlledByServiceWorker() const override; | 44 bool IsControlledByServiceWorker() const override; |
45 void SetDataSaverEnabled(bool) override; | 45 void SetDataSaverEnabled(bool) override; |
46 bool IsDataSaverEnabled() const override; | 46 bool IsDataSaverEnabled() const override; |
47 blink::WebURL FirstPartyForCookies() const override; | 47 blink::WebURL FirstPartyForCookies() const override; |
48 void DidRunContentWithCertificateErrors(const blink::WebURL& url) override; | 48 void DidRunContentWithCertificateErrors(const blink::WebURL& url) override; |
49 void DidDisplayContentWithCertificateErrors( | 49 void DidDisplayContentWithCertificateErrors( |
50 const blink::WebURL& url) override; | 50 const blink::WebURL& url) override; |
| 51 void SetAppCacheHostID(int id) override; |
| 52 int64_t ServiceWorkerID() const override; |
51 | 53 |
52 // mojom::ServiceWorkerWorkerClient implementation: | 54 // mojom::ServiceWorkerWorkerClient implementation: |
53 void SetControllerServiceWorker(int64_t controller_version_id) override; | 55 void SetControllerServiceWorker(int64_t controller_version_id) override; |
54 | 56 |
55 // Sets the fetch context status copied from the frame; the parent frame for a | 57 // Sets the fetch context status copied from the frame; the parent frame for a |
56 // dedicated worker, the main frame of the shadow page for a shared worker. | 58 // dedicated worker, the main frame of the shadow page for a shared worker. |
57 void set_service_worker_provider_id(int id); | 59 void set_service_worker_provider_id(int id); |
58 void set_is_controlled_by_service_worker(bool flag); | 60 void set_is_controlled_by_service_worker(bool flag); |
59 void set_parent_frame_id(int id); | 61 void set_parent_frame_id(int id); |
60 void set_first_party_for_cookies( | 62 void set_first_party_for_cookies( |
(...skipping 18 matching lines...) Expand all Loading... |
79 | 81 |
80 // Updated when mojom::ServiceWorkerWorkerClient::SetControllerServiceWorker() | 82 // Updated when mojom::ServiceWorkerWorkerClient::SetControllerServiceWorker() |
81 // is called from the browser process via mojo IPC. | 83 // is called from the browser process via mojo IPC. |
82 int controller_version_id_ = kInvalidServiceWorkerVersionId; | 84 int controller_version_id_ = kInvalidServiceWorkerVersionId; |
83 | 85 |
84 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 86 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
85 bool is_data_saver_enabled_ = false; | 87 bool is_data_saver_enabled_ = false; |
86 int parent_frame_id_ = MSG_ROUTING_NONE; | 88 int parent_frame_id_ = MSG_ROUTING_NONE; |
87 GURL first_party_for_cookies_; | 89 GURL first_party_for_cookies_; |
88 bool is_secure_context_ = false; | 90 bool is_secure_context_ = false; |
| 91 int appcache_host_id_ = 0; |
89 }; | 92 }; |
90 | 93 |
91 } // namespace content | 94 } // namespace content |
92 | 95 |
93 #endif // CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_IMPL_H_ | 96 #endif // CONTENT_RENDERER_SERVICE_WORKER_WORKER_FETCH_CONTEXT_IMPL_H_ |
OLD | NEW |