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_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/single_thread_task_runner.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
19 #include "gpu/ipc/client/gpu_channel_host.h" | 20 #include "gpu/ipc/client/gpu_channel_host.h" |
20 #include "ipc/message_filter.h" | 21 #include "ipc/message_filter.h" |
21 | 22 |
22 namespace content { | 23 namespace content { |
23 class BrowserGpuMemoryBufferManager; | 24 class BrowserGpuMemoryBufferManager; |
24 | 25 |
25 class CONTENT_EXPORT BrowserGpuChannelHostFactory | 26 class CONTENT_EXPORT BrowserGpuChannelHostFactory |
26 : public gpu::GpuChannelHostFactory, | 27 : public gpu::GpuChannelHostFactory, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 std::vector<gpu::GpuChannelEstablishedCallback> established_callbacks_; | 76 std::vector<gpu::GpuChannelEstablishedCallback> established_callbacks_; |
76 | 77 |
77 static BrowserGpuChannelHostFactory* instance_; | 78 static BrowserGpuChannelHostFactory* instance_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); | 80 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace content | 83 } // namespace content |
83 | 84 |
84 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 85 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
OLD | NEW |