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

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

Issue 2939623002: [DONT COMMIT] WIP: WorkerClientsInitializer (Closed)
Patch Set: finalize2 Created 3 years, 6 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/WebEmbeddedWorker.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 25 matching lines...) Expand all
36 #include "public/platform/WebContentSecurityPolicy.h" 36 #include "public/platform/WebContentSecurityPolicy.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class WebString; 40 class WebString;
41 class WebMessagePortChannel; 41 class WebMessagePortChannel;
42 class WebSharedWorkerClient; 42 class WebSharedWorkerClient;
43 class WebURL; 43 class WebURL;
44 44
45 // This is the interface to a SharedWorker thread. 45 // This is the interface to a SharedWorker thread.
46 class WebSharedWorker { 46 class BLINK_EXPORT WebSharedWorker {
47 public: 47 public:
48 // Instantiate a WebSharedWorker that interacts with the shared worker. 48 // Instantiate a WebSharedWorker that interacts with the shared worker.
49 // WebSharedWorkerClient given here must outlive or have the identical 49 // WebSharedWorkerClient given here must outlive or have the identical
50 // lifetime as this instance. 50 // lifetime as this instance.
51 BLINK_EXPORT static WebSharedWorker* Create(WebSharedWorkerClient*); 51 static WebSharedWorker* Create(WebSharedWorkerClient*);
52 52
53 virtual void StartWorkerContext(const WebURL& script_url, 53 virtual void StartWorkerContext(const WebURL& script_url,
54 const WebString& name, 54 const WebString& name,
55 const WebString& content_security_policy, 55 const WebString& content_security_policy,
56 WebContentSecurityPolicyType, 56 WebContentSecurityPolicyType,
57 WebAddressSpace, 57 WebAddressSpace,
58 bool data_saver_enabled) = 0; 58 bool data_saver_enabled) = 0;
59 59
60 // Sends a connect event to the SharedWorker context. 60 // Sends a connect event to the SharedWorker context.
61 virtual void Connect(std::unique_ptr<WebMessagePortChannel>) = 0; 61 virtual void Connect(std::unique_ptr<WebMessagePortChannel>) = 0;
(...skipping 10 matching lines...) Expand all
72 virtual void DetachDevTools(int session_id) = 0; 72 virtual void DetachDevTools(int session_id) = 0;
73 virtual void DispatchDevToolsMessage(int session_id, 73 virtual void DispatchDevToolsMessage(int session_id,
74 int call_id, 74 int call_id,
75 const WebString& method, 75 const WebString& method,
76 const WebString& message) = 0; 76 const WebString& message) = 0;
77 }; 77 };
78 78
79 } // namespace blink 79 } // namespace blink
80 80
81 #endif 81 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebEmbeddedWorker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698