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

Side by Side Diff: public/web/WebSharedWorkerClient.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 | « 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) 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 30 matching lines...) Expand all
41 class WebNotificationPresenter; 41 class WebNotificationPresenter;
42 class WebSecurityOrigin; 42 class WebSecurityOrigin;
43 class WebServiceWorkerNetworkProvider; 43 class WebServiceWorkerNetworkProvider;
44 class WebString; 44 class WebString;
45 class WebWorker; 45 class WebWorker;
46 class WebWorkerContentSettingsClientProxy; 46 class WebWorkerContentSettingsClientProxy;
47 47
48 // Provides an interface back to the in-page script object for a worker. 48 // Provides an interface back to the in-page script object for a worker.
49 // All functions are expected to be called back on the thread that created 49 // All functions are expected to be called back on the thread that created
50 // the Worker object, unless noted. 50 // the Worker object, unless noted.
51 // An instance of this class must outlive or must have the identical lifetime
52 // as WebSharedWorker (i.e. must be kept alive until workerScriptLoadFailed()
53 // or workerContextDestroyed() is called).
51 class WebSharedWorkerClient { 54 class WebSharedWorkerClient {
52 public: 55 public:
53 virtual void workerContextClosed() = 0; 56 virtual void workerContextClosed() = 0;
54 virtual void workerContextDestroyed() = 0; 57 virtual void workerContextDestroyed() = 0;
55 virtual void workerReadyForInspection() { } 58 virtual void workerReadyForInspection() { }
56 virtual void workerScriptLoaded() = 0; 59 virtual void workerScriptLoaded() = 0;
57 virtual void workerScriptLoadFailed() = 0; 60 virtual void workerScriptLoadFailed() = 0;
58 virtual void selectAppCacheID(long long) = 0; 61 virtual void selectAppCacheID(long long) = 0;
59 62
60 // Returns the notification presenter for this worker context. Pointer 63 // Returns the notification presenter for this worker context. Pointer
(...skipping 13 matching lines...) Expand all
74 // Called on the main thread during initialization. 77 // Called on the main thread during initialization.
75 // Ownership of the returned object is transferred to the caller. 78 // Ownership of the returned object is transferred to the caller.
76 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; } 79 virtual WebServiceWorkerNetworkProvider* createServiceWorkerNetworkProvider( WebDataSource*) { return nullptr; }
77 80
78 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { } 81 virtual void sendDevToolsMessage(int callId, const WebString& message, const WebString& state) { }
79 }; 82 };
80 83
81 } // namespace blink 84 } // namespace blink
82 85
83 #endif 86 #endif
OLDNEW
« no previous file with comments | « public/web/WebSharedWorker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698