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

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

Issue 2816403002: test all
Patch Set: fix sharedworker Created 3 years, 8 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
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 21 matching lines...) Expand all
32 #define WebSharedWorker_h 32 #define WebSharedWorker_h
33 33
34 #include "../platform/WebAddressSpace.h" 34 #include "../platform/WebAddressSpace.h"
35 #include "../platform/WebCommon.h" 35 #include "../platform/WebCommon.h"
36 #include "../platform/WebContentSecurityPolicy.h" 36 #include "../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 WebServiceWorkerNetworkProvider;
42 class WebSharedWorkerClient; 43 class WebSharedWorkerClient;
43 class WebURL; 44 class WebURL;
44 45
45 // This is the interface to a SharedWorker thread. 46 // This is the interface to a SharedWorker thread.
46 class WebSharedWorker { 47 class WebSharedWorker {
47 public: 48 public:
48 // Instantiate a WebSharedWorker that interacts with the shared worker. 49 // Instantiate a WebSharedWorker that interacts with the shared worker.
49 // WebSharedWorkerClient given here must outlive or have the identical 50 // WebSharedWorkerClient given here must outlive or have the identical
50 // lifetime as this instance. 51 // lifetime as this instance.
51 BLINK_EXPORT static WebSharedWorker* Create(WebSharedWorkerClient*); 52 BLINK_EXPORT static WebSharedWorker* Create(WebSharedWorkerClient*);
(...skipping 14 matching lines...) Expand all
66 virtual void PauseWorkerContextOnStart() = 0; 67 virtual void PauseWorkerContextOnStart() = 0;
67 virtual void AttachDevTools(const WebString& host_id, int session_id) = 0; 68 virtual void AttachDevTools(const WebString& host_id, int session_id) = 0;
68 virtual void ReattachDevTools(const WebString& host_id, 69 virtual void ReattachDevTools(const WebString& host_id,
69 int session_id, 70 int session_id,
70 const WebString& saved_state) = 0; 71 const WebString& saved_state) = 0;
71 virtual void DetachDevTools() = 0; 72 virtual void DetachDevTools() = 0;
72 virtual void DispatchDevToolsMessage(int session_id, 73 virtual void DispatchDevToolsMessage(int session_id,
73 int call_id, 74 int call_id,
74 const WebString& method, 75 const WebString& method,
75 const WebString& message) = 0; 76 const WebString& message) = 0;
77 virtual WebServiceWorkerNetworkProvider*
78 GetServiceWorkerNetworkProvider() = 0;
76 }; 79 };
77 80
78 } // namespace blink 81 } // namespace blink
79 82
80 #endif 83 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebRuntimeFeatures.h ('k') | third_party/WebKit/public/web/WebSharedWorkerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698