OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
danakj
2014/07/10 17:09:15
Think this class could live in content/browser/com
| |
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 CONTENT_BROWSER_RENDERER_HOST_NO_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_NO_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "content/browser/renderer_host/image_transport_factory_android.h" | |
11 | |
12 namespace cc { | |
13 class ContextProvider; | |
14 } | |
15 | |
16 namespace ui { | |
17 class ContextFactory; | |
18 } | |
19 | |
20 namespace content { | |
21 class GLHelper; | |
22 | |
23 // An ImageTransportFactoryAndroid that disables transport. This class is for | |
24 // unittests. | |
25 class NoImageTransportFactoryAndroid : public ImageTransportFactoryAndroid { | |
26 public: | |
27 NoImageTransportFactoryAndroid(); | |
28 virtual ~NoImageTransportFactoryAndroid(); | |
29 virtual GLHelper* GetGLHelper() OVERRIDE; | |
30 virtual uint32 GetChannelID() OVERRIDE; | |
31 | |
32 private: | |
33 scoped_ptr<ui::ContextFactory> context_factory_; | |
34 scoped_refptr<cc::ContextProvider> context_provider_; | |
35 scoped_ptr<GLHelper> gl_helper_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(NoImageTransportFactoryAndroid); | |
38 }; | |
39 | |
40 } // namespace content | |
41 | |
42 #endif // CONTENT_BROWSER_RENDERER_HOST_NO_IMAGE_TRANSPORT_FACTORY_ANDROID_H_ | |
OLD | NEW |