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_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 private: | 30 private: |
31 friend class BrowserThread; | 31 friend class BrowserThread; |
32 friend class base::DeleteHelper<GpuMessageFilter>; | 32 friend class base::DeleteHelper<GpuMessageFilter>; |
33 | 33 |
34 ~GpuMessageFilter() override; | 34 ~GpuMessageFilter() override; |
35 | 35 |
36 // Message handlers called on the browser IO thread: | 36 // Message handlers called on the browser IO thread: |
37 void OnEstablishGpuChannel(CauseForGpuLaunch, | 37 void OnEstablishGpuChannel(CauseForGpuLaunch, |
38 IPC::Message* reply); | 38 IPC::Message* reply); |
| 39 void OnHasGpuProcess(IPC::Message* reply); |
39 // Helper callbacks for the message handlers. | 40 // Helper callbacks for the message handlers. |
40 void EstablishChannelCallback(scoped_ptr<IPC::Message> reply, | 41 void EstablishChannelCallback(scoped_ptr<IPC::Message> reply, |
41 const IPC::ChannelHandle& channel, | 42 const IPC::ChannelHandle& channel, |
42 const gpu::GPUInfo& gpu_info); | 43 const gpu::GPUInfo& gpu_info); |
| 44 void GetGpuProcessHandlesCallback( |
| 45 scoped_ptr<IPC::Message> reply, |
| 46 const std::list<base::ProcessHandle>& handles); |
43 | 47 |
44 int gpu_process_id_; | 48 int gpu_process_id_; |
45 int render_process_id_; | 49 int render_process_id_; |
46 | 50 |
47 base::WeakPtrFactory<GpuMessageFilter> weak_ptr_factory_; | 51 base::WeakPtrFactory<GpuMessageFilter> weak_ptr_factory_; |
48 | 52 |
49 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); | 53 DISALLOW_COPY_AND_ASSIGN(GpuMessageFilter); |
50 }; | 54 }; |
51 | 55 |
52 } // namespace content | 56 } // namespace content |
53 | 57 |
54 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ | 58 #endif // CONTENT_BROWSER_RENDERER_HOST_GPU_MESSAGE_FILTER_H_ |
OLD | NEW |