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

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

Issue 483813002: DevTools: Add workerShadowPageLoaded method to shared/service worker clients for further plumbing i… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comments addressed Created 6 years, 4 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/WebServiceWorkerContextClient.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class WebWorker; 43 class WebWorker;
44 class WebWorkerPermissionClientProxy; 44 class WebWorkerPermissionClientProxy;
45 45
46 // Provides an interface back to the in-page script object for a worker. 46 // Provides an interface back to the in-page script object for a worker.
47 // All functions are expected to be called back on the thread that created 47 // All functions are expected to be called back on the thread that created
48 // the Worker object, unless noted. 48 // the Worker object, unless noted.
49 class WebSharedWorkerClient { 49 class WebSharedWorkerClient {
50 public: 50 public:
51 virtual void workerContextClosed() = 0; 51 virtual void workerContextClosed() = 0;
52 virtual void workerContextDestroyed() = 0; 52 virtual void workerContextDestroyed() = 0;
53 virtual void workerReadyForInspection() { }
53 virtual void workerScriptLoaded() = 0; 54 virtual void workerScriptLoaded() = 0;
54 virtual void workerScriptLoadFailed() = 0; 55 virtual void workerScriptLoadFailed() = 0;
55 virtual void selectAppCacheID(long long) = 0; 56 virtual void selectAppCacheID(long long) = 0;
56 57
57 // Returns the notification presenter for this worker context. Pointer 58 // Returns the notification presenter for this worker context. Pointer
58 // is owned by the object implementing WebSharedWorkerClient. 59 // is owned by the object implementing WebSharedWorkerClient.
59 virtual WebNotificationPresenter* notificationPresenter() = 0; 60 virtual WebNotificationPresenter* notificationPresenter() = 0;
60 61
61 // Called on the main webkit thread in the worker process during 62 // Called on the main webkit thread in the worker process during
62 // initialization. 63 // initialization.
63 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0; 64 virtual WebApplicationCacheHost* createApplicationCacheHost(WebApplicationCa cheHostClient*) = 0;
64 65
65 // Called on the main webkit thread in the worker process during 66 // Called on the main webkit thread in the worker process during
66 // initialization. 67 // initialization.
67 // WebWorkerPermissionClientProxy should not retain the given 68 // WebWorkerPermissionClientProxy should not retain the given
68 // WebSecurityOrigin, as the proxy instance is passed to worker thread 69 // WebSecurityOrigin, as the proxy instance is passed to worker thread
69 // while WebSecurityOrigin is not thread safe. 70 // while WebSecurityOrigin is not thread safe.
70 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return 0; } 71 virtual WebWorkerPermissionClientProxy* createWorkerPermissionClientProxy(co nst WebSecurityOrigin&) { return 0; }
71 72
72 virtual void dispatchDevToolsMessage(const WebString&) { } 73 virtual void dispatchDevToolsMessage(const WebString&) { }
73 virtual void saveDevToolsAgentState(const WebString&) { } 74 virtual void saveDevToolsAgentState(const WebString&) { }
74 }; 75 };
75 76
76 } // namespace blink 77 } // namespace blink
77 78
78 #endif 79 #endif
OLDNEW
« no previous file with comments | « public/web/WebServiceWorkerContextClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698