OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 blink::WebStorageQuotaCallbacks) override; | 191 blink::WebStorageQuotaCallbacks) override; |
192 void vibrate(unsigned int milliseconds) override; | 192 void vibrate(unsigned int milliseconds) override; |
193 void cancelVibration() override; | 193 void cancelVibration() override; |
194 blink::WebThread* currentThread() override; | 194 blink::WebThread* currentThread() override; |
195 blink::BlameContext* topLevelBlameContext() override; | 195 blink::BlameContext* topLevelBlameContext() override; |
196 void recordRappor(const char* metric, | 196 void recordRappor(const char* metric, |
197 const blink::WebString& sample) override; | 197 const blink::WebString& sample) override; |
198 void recordRapporURL(const char* metric, const blink::WebURL& url) override; | 198 void recordRapporURL(const char* metric, const blink::WebURL& url) override; |
199 | 199 |
200 blink::WebTrialTokenValidator* trialTokenValidator() override; | 200 blink::WebTrialTokenValidator* trialTokenValidator() override; |
| 201 void workerContextCreated(const v8::Local<v8::Context>& worker) override; |
201 | 202 |
202 // Set the PlatformEventObserverBase in |platform_event_observers_| associated | 203 // Set the PlatformEventObserverBase in |platform_event_observers_| associated |
203 // with |type| to |observer|. If there was already an observer associated to | 204 // with |type| to |observer|. If there was already an observer associated to |
204 // the given |type|, it will be replaced. | 205 // the given |type|, it will be replaced. |
205 // Note that |observer| will be owned by this object after the call. | 206 // Note that |observer| will be owned by this object after the call. |
206 void SetPlatformEventObserverForTesting( | 207 void SetPlatformEventObserverForTesting( |
207 blink::WebPlatformEventType type, | 208 blink::WebPlatformEventType type, |
208 std::unique_ptr<PlatformEventObserverBase> observer); | 209 std::unique_ptr<PlatformEventObserverBase> observer); |
209 | 210 |
210 // Disables the WebSandboxSupport implementation for testing. | 211 // Disables the WebSandboxSupport implementation for testing. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; | 306 std::unique_ptr<LocalStorageCachedAreas> local_storage_cached_areas_; |
306 | 307 |
307 std::unique_ptr<BlinkServiceRegistryImpl> blink_service_registry_; | 308 std::unique_ptr<BlinkServiceRegistryImpl> blink_service_registry_; |
308 | 309 |
309 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 310 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
310 }; | 311 }; |
311 | 312 |
312 } // namespace content | 313 } // namespace content |
313 | 314 |
314 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 315 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |