Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: content/browser/gpu/gpu_process_host.h

Issue 2820463002: gpu: Completely remove GpuProcessHostUIShim. (Closed)
Patch Set: . Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_GPU_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 private: 166 private:
167 class ConnectionFilterImpl; 167 class ConnectionFilterImpl;
168 168
169 static bool ValidateHost(GpuProcessHost* host); 169 static bool ValidateHost(GpuProcessHost* host);
170 170
171 GpuProcessHost(int host_id, GpuProcessKind kind); 171 GpuProcessHost(int host_id, GpuProcessKind kind);
172 ~GpuProcessHost() override; 172 ~GpuProcessHost() override;
173 173
174 bool Init(); 174 bool Init();
175 175
176 // Post an IPC message to the UI shim's message handler on the UI thread.
177 void RouteOnUIThread(const IPC::Message& message);
178
179 // BrowserChildProcessHostDelegate implementation. 176 // BrowserChildProcessHostDelegate implementation.
180 bool OnMessageReceived(const IPC::Message& message) override; 177 bool OnMessageReceived(const IPC::Message& message) override;
181 void OnChannelConnected(int32_t peer_pid) override; 178 void OnChannelConnected(int32_t peer_pid) override;
182 void OnProcessLaunched() override; 179 void OnProcessLaunched() override;
183 void OnProcessLaunchFailed(int error_code) override; 180 void OnProcessLaunchFailed(int error_code) override;
184 void OnProcessCrashed(int exit_code) override; 181 void OnProcessCrashed(int exit_code) override;
185 182
186 // ui::mojom::GpuHost: 183 // ui::mojom::GpuHost:
187 void DidInitialize(const gpu::GPUInfo& gpu_info, 184 void DidInitialize(const gpu::GPUInfo& gpu_info,
188 const gpu::GpuFeatureInfo& gpu_feature_info) override; 185 const gpu::GpuFeatureInfo& gpu_feature_info) override;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 gpu::GpuProcessHostActivityFlags activity_flags_; 297 gpu::GpuProcessHostActivityFlags activity_flags_;
301 298
302 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_; 299 base::WeakPtrFactory<GpuProcessHost> weak_ptr_factory_;
303 300
304 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 301 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
305 }; 302 };
306 303
307 } // namespace content 304 } // namespace content
308 305
309 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 306 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/gpu/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698