OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 using DocumentID = unsigned long long; | 50 using DocumentID = unsigned long long; |
51 | 51 |
52 // Connects to a shared worker. | 52 // Connects to a shared worker. |
53 virtual void Connect(const WebURL& url, | 53 virtual void Connect(const WebURL& url, |
54 const WebString& name, | 54 const WebString& name, |
55 DocumentID id, | 55 DocumentID id, |
56 const WebString& content_security_policy, | 56 const WebString& content_security_policy, |
57 WebContentSecurityPolicyType, | 57 WebContentSecurityPolicyType, |
58 WebAddressSpace, | 58 WebAddressSpace, |
59 WebSharedWorkerCreationContextType, | 59 WebSharedWorkerCreationContextType, |
| 60 bool data_saver_enabled, |
60 std::unique_ptr<WebMessagePortChannel>, | 61 std::unique_ptr<WebMessagePortChannel>, |
61 std::unique_ptr<blink::WebSharedWorkerConnectListener>) { | 62 std::unique_ptr<blink::WebSharedWorkerConnectListener>) { |
62 } | 63 } |
63 | 64 |
64 // Invoked when a document has been detached. DocumentID can be re-used after | 65 // Invoked when a document has been detached. DocumentID can be re-used after |
65 // documentDetached() is invoked. | 66 // documentDetached() is invoked. |
66 virtual void DocumentDetached(DocumentID) {} | 67 virtual void DocumentDetached(DocumentID) {} |
67 }; | 68 }; |
68 | 69 |
69 } // namespace blink | 70 } // namespace blink |
70 | 71 |
71 #endif // WebSharedWorkerRepositoryClient_h | 72 #endif // WebSharedWorkerRepositoryClient_h |
OLD | NEW |