Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: third_party/WebKit/public/web/WebSharedWorkerRepositoryClient.h

Issue 2604733002: SharedWorker: Make shared workers keyed by a pair of url and name (Closed)
Patch Set: clean up Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698