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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 return web_database_observer_impl_.get(); | 234 return web_database_observer_impl_.get(); |
235 } | 235 } |
236 | 236 |
237 blink::WebURLLoader* createURLLoader() override; | 237 blink::WebURLLoader* createURLLoader() override; |
238 | 238 |
239 private: | 239 private: |
240 bool CheckPreparsedJsCachingEnabled() const; | 240 bool CheckPreparsedJsCachingEnabled() const; |
241 | 241 |
242 // Factory that takes a type and return PlatformEventObserverBase that matches | 242 // Factory that takes a type and return PlatformEventObserverBase that matches |
243 // it. | 243 // it. |
244 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( | 244 static std::unique_ptr<PlatformEventObserverBase> |
245 blink::WebPlatformEventType type); | 245 CreatePlatformEventObserverFromType(blink::WebPlatformEventType type); |
246 | 246 |
247 // Use the data previously set via SetMockDevice...DataForTesting() and send | 247 // Use the data previously set via SetMockDevice...DataForTesting() and send |
248 // them to the registered listener. | 248 // them to the registered listener. |
249 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 249 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
250 | 250 |
251 std::unique_ptr<blink::WebThread> main_thread_; | 251 std::unique_ptr<blink::WebThread> main_thread_; |
252 | 252 |
253 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_; | 253 std::unique_ptr<RendererClipboardDelegate> clipboard_delegate_; |
254 std::unique_ptr<WebClipboardImpl> clipboard_; | 254 std::unique_ptr<WebClipboardImpl> clipboard_; |
255 | 255 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; | 301 std::unique_ptr<BlinkInterfaceProviderImpl> blink_interface_provider_; |
302 | 302 |
303 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; | 303 mojom::URLLoaderFactoryAssociatedPtr url_loader_factory_; |
304 | 304 |
305 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 305 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
306 }; | 306 }; |
307 | 307 |
308 } // namespace content | 308 } // namespace content |
309 | 309 |
310 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 310 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |