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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 enum WebContentSecurityPolicyType; | 42 enum WebContentSecurityPolicyType; |
43 class WebString; | 43 class WebString; |
44 class WebURL; | 44 class WebURL; |
45 | 45 |
46 class WebSharedWorkerRepositoryClient { | 46 class WebSharedWorkerRepositoryClient { |
47 public: | 47 public: |
48 // Unique identifier for the parent document of a worker (unique within a | 48 // Unique identifier for the parent document of a worker (unique within a |
49 // given process). | 49 // given process). |
50 using DocumentID = unsigned long long; | 50 using DocumentID = unsigned long long; |
51 | 51 |
52 // Creates a new shared worker connector. This may return null. | 52 // Creates a new shared worker connector. |
53 virtual std::unique_ptr<WebSharedWorkerConnector> createSharedWorkerConnector( | 53 virtual std::unique_ptr<WebSharedWorkerConnector> createSharedWorkerConnector( |
54 const WebURL& url, | 54 const WebURL& url, |
55 const WebString& name, | 55 const WebString& name, |
56 DocumentID id, | 56 DocumentID id, |
57 const WebString& contentSecurityPolicy, | 57 const WebString& contentSecurityPolicy, |
58 WebContentSecurityPolicyType, | 58 WebContentSecurityPolicyType, |
59 WebAddressSpace, | 59 WebAddressSpace, |
60 WebSharedWorkerCreationContextType, | 60 WebSharedWorkerCreationContextType, |
61 WebWorkerCreationError* error) { | 61 WebWorkerCreationError* error) { |
62 return nullptr; | 62 return nullptr; |
63 } | 63 } |
64 | 64 |
65 // 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 |
66 // documentDetached() is invoked. | 66 // documentDetached() is invoked. |
67 virtual void documentDetached(DocumentID) {} | 67 virtual void documentDetached(DocumentID) {} |
68 }; | 68 }; |
69 | 69 |
70 } // namespace blink | 70 } // namespace blink |
71 | 71 |
72 #endif // WebSharedWorkerRepositoryClient_h | 72 #endif // WebSharedWorkerRepositoryClient_h |
OLD | NEW |