OLD | NEW |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 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() | 52 // as WebSharedWorker (i.e. must be kept alive until workerScriptLoadFailed() |
53 // or workerContextDestroyed() is called). | 53 // or workerContextDestroyed() is called). |
54 class WebSharedWorkerClient { | 54 class WebSharedWorkerClient { |
55 public: | 55 public: |
| 56 virtual void countFeature(uint32_t) = 0; |
56 virtual void workerContextClosed() = 0; | 57 virtual void workerContextClosed() = 0; |
57 virtual void workerContextDestroyed() = 0; | 58 virtual void workerContextDestroyed() = 0; |
58 virtual void workerReadyForInspection() {} | 59 virtual void workerReadyForInspection() {} |
59 virtual void workerScriptLoaded() = 0; | 60 virtual void workerScriptLoaded() = 0; |
60 virtual void workerScriptLoadFailed() = 0; | 61 virtual void workerScriptLoadFailed() = 0; |
61 virtual void selectAppCacheID(long long) = 0; | 62 virtual void selectAppCacheID(long long) = 0; |
62 | 63 |
63 // Returns the notification presenter for this worker context. Pointer | 64 // Returns the notification presenter for this worker context. Pointer |
64 // is owned by the object implementing WebSharedWorkerClient. | 65 // is owned by the object implementing WebSharedWorkerClient. |
65 virtual WebNotificationPresenter* notificationPresenter() = 0; | 66 virtual WebNotificationPresenter* notificationPresenter() = 0; |
(...skipping 25 matching lines...) Expand all Loading... |
91 const WebString& state) {} | 92 const WebString& state) {} |
92 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* | 93 virtual WebDevToolsAgentClient::WebKitClientMessageLoop* |
93 createDevToolsMessageLoop() { | 94 createDevToolsMessageLoop() { |
94 return nullptr; | 95 return nullptr; |
95 } | 96 } |
96 }; | 97 }; |
97 | 98 |
98 } // namespace blink | 99 } // namespace blink |
99 | 100 |
100 #endif | 101 #endif |
OLD | NEW |