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 26 matching lines...) Expand all Loading... |
37 #include "public/platform/WebAddressSpace.h" | 37 #include "public/platform/WebAddressSpace.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 enum WebContentSecurityPolicyType; | 41 enum WebContentSecurityPolicyType; |
42 class WebString; | 42 class WebString; |
43 class WebURL; | 43 class WebURL; |
44 | 44 |
45 class WebSharedWorkerRepositoryClient { | 45 class WebSharedWorkerRepositoryClient { |
46 public: | 46 public: |
47 // Unique identifier for the parent document of a worker (unique within a give
n process). | 47 // Unique identifier for the parent document of a worker (unique within a |
| 48 // given process). |
48 typedef unsigned long long DocumentID; | 49 typedef unsigned long long DocumentID; |
49 | 50 |
50 // Creates a new shared worker connector. This may return null. | 51 // Creates a new shared worker connector. This may return null. |
51 virtual WebSharedWorkerConnector* createSharedWorkerConnector( | 52 virtual WebSharedWorkerConnector* createSharedWorkerConnector( |
52 const WebURL& url, | 53 const WebURL& url, |
53 const WebString& name, | 54 const WebString& name, |
54 DocumentID id, | 55 DocumentID id, |
55 const WebString& contentSecurityPolicy, | 56 const WebString& contentSecurityPolicy, |
56 WebContentSecurityPolicyType, | 57 WebContentSecurityPolicyType, |
57 WebAddressSpace, | 58 WebAddressSpace, |
58 WebSharedWorkerCreationContextType, | 59 WebSharedWorkerCreationContextType, |
59 WebWorkerCreationError* error) { | 60 WebWorkerCreationError* error) { |
60 return 0; | 61 return 0; |
61 } | 62 } |
62 | 63 |
63 // Invoked when a document has been detached. DocumentID can be re-used after
documentDetached() is invoked. | 64 // Invoked when a document has been detached. DocumentID can be re-used after |
| 65 // documentDetached() is invoked. |
64 virtual void documentDetached(DocumentID) {} | 66 virtual void documentDetached(DocumentID) {} |
65 }; | 67 }; |
66 | 68 |
67 } // namespace blink | 69 } // namespace blink |
68 | 70 |
69 #endif // WebSharedWorkerRepositoryClient_h | 71 #endif // WebSharedWorkerRepositoryClient_h |
OLD | NEW |