OLD | NEW |
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_RENDERER_SHARED_WORKER_SHARED_WORKER_REPOSITORY_H_ | 5 #ifndef CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_REPOSITORY_H_ |
6 #define CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_REPOSITORY_H_ | 6 #define CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_REPOSITORY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // WebSharedWorkerRepositoryClient overrides. | 27 // WebSharedWorkerRepositoryClient overrides. |
28 void Connect( | 28 void Connect( |
29 const blink::WebURL& url, | 29 const blink::WebURL& url, |
30 const blink::WebString& name, | 30 const blink::WebString& name, |
31 DocumentID document_id, | 31 DocumentID document_id, |
32 const blink::WebString& content_security_policy, | 32 const blink::WebString& content_security_policy, |
33 blink::WebContentSecurityPolicyType, | 33 blink::WebContentSecurityPolicyType, |
34 blink::WebAddressSpace, | 34 blink::WebAddressSpace, |
35 blink::WebSharedWorkerCreationContextType, | 35 blink::WebSharedWorkerCreationContextType, |
| 36 bool data_saver_enabled, |
36 std::unique_ptr<blink::WebMessagePortChannel> channel, | 37 std::unique_ptr<blink::WebMessagePortChannel> channel, |
37 std::unique_ptr<blink::WebSharedWorkerConnectListener> listener) override; | 38 std::unique_ptr<blink::WebSharedWorkerConnectListener> listener) override; |
38 void DocumentDetached(DocumentID document_id) override; | 39 void DocumentDetached(DocumentID document_id) override; |
39 | 40 |
40 private: | 41 private: |
41 RenderFrameImpl* render_frame_; | 42 RenderFrameImpl* render_frame_; |
42 std::set<DocumentID> documents_with_workers_; | 43 std::set<DocumentID> documents_with_workers_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(SharedWorkerRepository); | 45 DISALLOW_COPY_AND_ASSIGN(SharedWorkerRepository); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace content | 48 } // namespace content |
48 | 49 |
49 #endif // CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_REPOSITORY_H_ | 50 #endif // CONTENT_RENDERER_SHARED_WORKER_SHARED_WORKER_REPOSITORY_H_ |
OLD | NEW |