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

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

Issue 1923653002: Wire up process launch error codes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android Created 4 years, 7 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
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 bool Init(); 173 bool Init();
174 174
175 // Post an IPC message to the UI shim's message handler on the UI thread. 175 // Post an IPC message to the UI shim's message handler on the UI thread.
176 void RouteOnUIThread(const IPC::Message& message); 176 void RouteOnUIThread(const IPC::Message& message);
177 177
178 // BrowserChildProcessHostDelegate implementation. 178 // BrowserChildProcessHostDelegate implementation.
179 bool OnMessageReceived(const IPC::Message& message) override; 179 bool OnMessageReceived(const IPC::Message& message) override;
180 void OnChannelConnected(int32_t peer_pid) override; 180 void OnChannelConnected(int32_t peer_pid) override;
181 void OnProcessLaunched() override; 181 void OnProcessLaunched() override;
182 void OnProcessLaunchFailed() override; 182 void OnProcessLaunchFailed(int error_code) override;
183 void OnProcessCrashed(int exit_code) override; 183 void OnProcessCrashed(int exit_code) override;
184 184
185 // Message handlers. 185 // Message handlers.
186 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); 186 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info);
187 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); 187 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
188 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); 188 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
189 void OnDidCreateOffscreenContext(const GURL& url); 189 void OnDidCreateOffscreenContext(const GURL& url);
190 void OnDidLoseContext(bool offscreen, 190 void OnDidLoseContext(bool offscreen,
191 gpu::error::ContextLostReason reason, 191 gpu::error::ContextLostReason reason,
192 const GURL& url); 192 const GURL& url);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // Browser-side Mojo endpoint which sets up a Mojo channel with the child 292 // Browser-side Mojo endpoint which sets up a Mojo channel with the child
293 // process and contains the browser's ServiceRegistry. 293 // process and contains the browser's ServiceRegistry.
294 std::unique_ptr<MojoApplicationHost> mojo_application_host_; 294 std::unique_ptr<MojoApplicationHost> mojo_application_host_;
295 295
296 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 296 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
297 }; 297 };
298 298
299 } // namespace content 299 } // namespace content
300 300
301 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 301 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698