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_GPU_GPU_CHILD_THREAD_H_ | 5 #ifndef CONTENT_GPU_GPU_CHILD_THREAD_H_ |
6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ | 6 #define CONTENT_GPU_GPU_CHILD_THREAD_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void Init(const base::Time& process_start_time); | 80 void Init(const base::Time& process_start_time); |
81 void StopWatchdog(); | 81 void StopWatchdog(); |
82 | 82 |
83 gpu::GpuPreferences gpu_preferences() { return gpu_preferences_; } | 83 gpu::GpuPreferences gpu_preferences() { return gpu_preferences_; } |
84 | 84 |
85 private: | 85 private: |
86 // ChildThreadImpl:. | 86 // ChildThreadImpl:. |
87 bool Send(IPC::Message* msg) override; | 87 bool Send(IPC::Message* msg) override; |
88 bool OnControlMessageReceived(const IPC::Message& msg) override; | 88 bool OnControlMessageReceived(const IPC::Message& msg) override; |
89 bool OnMessageReceived(const IPC::Message& msg) override; | 89 bool OnMessageReceived(const IPC::Message& msg) override; |
90 bool AcceptConnection(shell::Connection* connection) override; | 90 bool OnConnect(shell::Connection* connection) override; |
91 shell::InterfaceRegistry* GetInterfaceRegistryForConnection() override; | 91 shell::InterfaceRegistry* GetInterfaceRegistryForConnection() override; |
92 shell::InterfaceProvider* GetInterfaceProviderForConnection() override; | 92 shell::InterfaceProvider* GetInterfaceProviderForConnection() override; |
93 | 93 |
94 // gpu::GpuChannelManagerDelegate: | 94 // gpu::GpuChannelManagerDelegate: |
95 void SetActiveURL(const GURL& url) override; | 95 void SetActiveURL(const GURL& url) override; |
96 void DidCreateOffscreenContext(const GURL& active_url) override; | 96 void DidCreateOffscreenContext(const GURL& active_url) override; |
97 void DidDestroyChannel(int client_id) override; | 97 void DidDestroyChannel(int client_id) override; |
98 void DidDestroyOffscreenContext(const GURL& active_url) override; | 98 void DidDestroyOffscreenContext(const GURL& active_url) override; |
99 void DidLoseContext(bool offscreen, | 99 void DidLoseContext(bool offscreen, |
100 gpu::error::ContextLostReason reason, | 100 gpu::error::ContextLostReason reason, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; | 180 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; |
181 | 181 |
182 base::Closure resume_interface_bindings_callback_; | 182 base::Closure resume_interface_bindings_callback_; |
183 | 183 |
184 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); | 184 DISALLOW_COPY_AND_ASSIGN(GpuChildThread); |
185 }; | 185 }; |
186 | 186 |
187 } // namespace content | 187 } // namespace content |
188 | 188 |
189 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ | 189 #endif // CONTENT_GPU_GPU_CHILD_THREAD_H_ |
OLD | NEW |