OLD | NEW |
| (Empty) |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ | |
6 #define BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "content/public/renderer/content_renderer_client.h" | |
12 | |
13 namespace web_cache { | |
14 class WebCacheImpl; | |
15 } | |
16 | |
17 namespace blimp { | |
18 namespace engine { | |
19 | |
20 class BlimpContentRendererClient : public content::ContentRendererClient { | |
21 public: | |
22 BlimpContentRendererClient(); | |
23 ~BlimpContentRendererClient() override; | |
24 | |
25 // content::ContentRendererClient implementation. | |
26 void RenderThreadStarted() override; | |
27 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; | |
28 std::unique_ptr<cc::RemoteCompositorBridge> CreateRemoteCompositorBridge( | |
29 content::RemoteProtoChannel* remote_proto_channel, | |
30 scoped_refptr<base::SingleThreadTaskRunner> compositor_main_task_runner) | |
31 override; | |
32 | |
33 private: | |
34 // Manages the process-global web cache. | |
35 std::unique_ptr<web_cache::WebCacheImpl> web_cache_impl_; | |
36 | |
37 // Provides the functionality to serialize images in SkPicture. | |
38 std::unique_ptr<cc::ImageSerializationProcessor> | |
39 image_serialization_processor_; | |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(BlimpContentRendererClient); | |
42 }; | |
43 | |
44 } // namespace engine | |
45 } // namespace blimp | |
46 | |
47 #endif // BLIMP_ENGINE_RENDERER_BLIMP_CONTENT_RENDERER_CLIENT_H_ | |
OLD | NEW |