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

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

Issue 1175463004: Cleanup: Remove WeakPtr usage in WebSharedWorkerImpl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more documentation Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebSharedWorkerImpl.cpp ('k') | public/web/WebSharedWorkerClient.h » ('j') | 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 26 matching lines...) Expand all
37 namespace blink { 37 namespace blink {
38 38
39 class WebString; 39 class WebString;
40 class WebMessagePortChannel; 40 class WebMessagePortChannel;
41 class WebSharedWorkerClient; 41 class WebSharedWorkerClient;
42 class WebURL; 42 class WebURL;
43 43
44 // This is the interface to a SharedWorker thread. 44 // This is the interface to a SharedWorker thread.
45 class WebSharedWorker { 45 class WebSharedWorker {
46 public: 46 public:
47 // Invoked from the worker thread to instantiate a WebSharedWorker that inte racts with the WebKit worker components. 47 // Instantiate a WebSharedWorker that interacts with the shared worker.
48 // WebSharedWorkerClient given here must outlive or have the identical
49 // lifetime as this instance.
48 BLINK_EXPORT static WebSharedWorker* create(WebSharedWorkerClient*); 50 BLINK_EXPORT static WebSharedWorker* create(WebSharedWorkerClient*);
49 51
50 virtual void startWorkerContext( 52 virtual void startWorkerContext(
51 const WebURL& scriptURL, 53 const WebURL& scriptURL,
52 const WebString& name, 54 const WebString& name,
53 const WebString& contentSecurityPolicy, 55 const WebString& contentSecurityPolicy,
54 WebContentSecurityPolicyType) = 0; 56 WebContentSecurityPolicyType) = 0;
55 57
56 // Sends a connect event to the SharedWorker context. 58 // Sends a connect event to the SharedWorker context.
57 virtual void connect(WebMessagePortChannel*) = 0; 59 virtual void connect(WebMessagePortChannel*) = 0;
58 60
59 // Invoked to shutdown the worker when there are no more associated document s. 61 // Invoked to shutdown the worker when there are no more associated document s. This eventually deletes this instance.
60 virtual void terminateWorkerContext() = 0; 62 virtual void terminateWorkerContext() = 0;
61 63
62 // Notification when the WebCommonWorkerClient is destroyed.
63 virtual void clientDestroyed() = 0;
64
65 virtual void pauseWorkerContextOnStart() = 0; 64 virtual void pauseWorkerContextOnStart() = 0;
66 virtual void attachDevTools(const WebString& hostId) = 0; 65 virtual void attachDevTools(const WebString& hostId) = 0;
67 virtual void reattachDevTools(const WebString& hostId, const WebString& save dState) = 0; 66 virtual void reattachDevTools(const WebString& hostId, const WebString& save dState) = 0;
68 virtual void detachDevTools() = 0; 67 virtual void detachDevTools() = 0;
69 virtual void dispatchDevToolsMessage(const WebString&) = 0; 68 virtual void dispatchDevToolsMessage(const WebString&) = 0;
70 }; 69 };
71 70
72 } // namespace blink 71 } // namespace blink
73 72
74 #endif 73 #endif
OLDNEW
« no previous file with comments | « Source/web/WebSharedWorkerImpl.cpp ('k') | public/web/WebSharedWorkerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698