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 1775933002: CORS-RFC1918: Pipe creator address space through SharedWorker creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 9 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/WebSharedWorker.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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebSharedWorkerRepositoryClient_h 31 #ifndef WebSharedWorkerRepositoryClient_h
32 #define WebSharedWorkerRepositoryClient_h 32 #define WebSharedWorkerRepositoryClient_h
33 33
34 #include "WebSharedWorkerConnector.h" 34 #include "WebSharedWorkerConnector.h"
35 #include "WebSharedWorkerCreationContextType.h" 35 #include "WebSharedWorkerCreationContextType.h"
36 #include "WebSharedWorkerCreationErrors.h" 36 #include "WebSharedWorkerCreationErrors.h"
37 #include "public/platform/WebAddressSpace.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 enum WebContentSecurityPolicyType; 41 enum WebContentSecurityPolicyType;
41 class WebString; 42 class WebString;
42 class WebURL; 43 class WebURL;
43 44
44 class WebSharedWorkerRepositoryClient { 45 class WebSharedWorkerRepositoryClient {
45 public: 46 public:
46 // Unique identifier for the parent document of a worker (unique within a gi ven process). 47 // Unique identifier for the parent document of a worker (unique within a gi ven process).
47 typedef unsigned long long DocumentID; 48 typedef unsigned long long DocumentID;
48 49
49 // Creates a new shared worker connector. This may return null. 50 // Creates a new shared worker connector. This may return null.
50 virtual WebSharedWorkerConnector* createSharedWorkerConnector(const WebURL& url, const WebString& name, DocumentID id, const WebString& contentSecurityPolic y, WebContentSecurityPolicyType, WebSharedWorkerCreationContextType, WebWorkerCr eationError* error) { return 0; } 51 virtual WebSharedWorkerConnector* createSharedWorkerConnector(const WebURL& url, const WebString& name, DocumentID id, const WebString& contentSecurityPolic y, WebContentSecurityPolicyType, WebAddressSpace, WebSharedWorkerCreationContext Type, WebWorkerCreationError* error) { return 0; }
51 52
52 // Invoked when a document has been detached. DocumentID can be re-used afte r documentDetached() is invoked. 53 // Invoked when a document has been detached. DocumentID can be re-used afte r documentDetached() is invoked.
53 virtual void documentDetached(DocumentID) { } 54 virtual void documentDetached(DocumentID) { }
54 }; 55 };
55 56
56 } // namespace blink 57 } // namespace blink
57 58
58 #endif // WebSharedWorkerRepositoryClient_h 59 #endif // WebSharedWorkerRepositoryClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebSharedWorker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698