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

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

Issue 9235052: Fix race condition in utility process clients (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 bool Init(); 91 bool Init();
92 92
93 // Post an IPC message to the UI shim's message handler on the UI thread. 93 // Post an IPC message to the UI shim's message handler on the UI thread.
94 void RouteOnUIThread(const IPC::Message& message); 94 void RouteOnUIThread(const IPC::Message& message);
95 95
96 // BrowserChildProcessHostDelegate implementation. 96 // BrowserChildProcessHostDelegate implementation.
97 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 97 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
98 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 98 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
99 virtual void OnProcessLaunched() OVERRIDE; 99 virtual void OnProcessLaunched() OVERRIDE;
100 virtual void OnProcessCrashed(int exit_code) OVERRIDE; 100 virtual void OnProcessCrashedOrWasKilled(int exit_code) OVERRIDE;
101 101
102 // Message handlers. 102 // Message handlers.
103 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); 103 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
104 void OnCommandBufferCreated(const int32 route_id); 104 void OnCommandBufferCreated(const int32 route_id);
105 void OnDestroyCommandBuffer(int32 surface_id); 105 void OnDestroyCommandBuffer(int32 surface_id);
106 106
107 bool LaunchGpuProcess(const std::string& channel_id); 107 bool LaunchGpuProcess(const std::string& channel_id);
108 108
109 void SendOutstandingReplies(); 109 void SendOutstandingReplies();
110 void EstablishChannelError( 110 void EstablishChannelError(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // browser session. It does not change the acceleration settings for 156 // browser session. It does not change the acceleration settings for
157 // existing tabs, just the future ones. 157 // existing tabs, just the future ones.
158 CONTENT_EXPORT static bool gpu_enabled_; 158 CONTENT_EXPORT static bool gpu_enabled_;
159 159
160 scoped_ptr<BrowserChildProcessHostImpl> process_; 160 scoped_ptr<BrowserChildProcessHostImpl> process_;
161 161
162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 162 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
163 }; 163 };
164 164
165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 165 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698