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

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

Issue 1703163002: Remove dependency on GURL from content/common/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void OnChannelConnected(int32_t peer_pid) override; 170 void OnChannelConnected(int32_t peer_pid) override;
171 void OnProcessLaunched() override; 171 void OnProcessLaunched() override;
172 void OnProcessLaunchFailed() override; 172 void OnProcessLaunchFailed() override;
173 void OnProcessCrashed(int exit_code) override; 173 void OnProcessCrashed(int exit_code) override;
174 ServiceRegistry* GetServiceRegistry() override; 174 ServiceRegistry* GetServiceRegistry() override;
175 175
176 // Message handlers. 176 // Message handlers.
177 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info); 177 void OnInitialized(bool result, const gpu::GPUInfo& gpu_info);
178 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle); 178 void OnChannelEstablished(const IPC::ChannelHandle& channel_handle);
179 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle); 179 void OnGpuMemoryBufferCreated(const gfx::GpuMemoryBufferHandle& handle);
180 void OnDidCreateOffscreenContext(const GURL& url); 180 void OnDidCreateOffscreenContext(const std::string& url);
181 void OnDidLoseContext(bool offscreen, 181 void OnDidLoseContext(bool offscreen,
182 gpu::error::ContextLostReason reason, 182 gpu::error::ContextLostReason reason,
183 const GURL& url); 183 const std::string& url);
184 void OnDidDestroyOffscreenContext(const GURL& url); 184 void OnDidDestroyOffscreenContext(const std::string& url);
185 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats); 185 void OnGpuMemoryUmaStatsReceived(const GPUMemoryUmaStats& stats);
186 #if defined(OS_MACOSX) 186 #if defined(OS_MACOSX)
187 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message); 187 void OnAcceleratedSurfaceBuffersSwapped(const IPC::Message& message);
188 #endif 188 #endif
189 189
190 #if defined(OS_WIN) 190 #if defined(OS_WIN)
191 void OnAcceleratedSurfaceCreatedChildWindow( 191 void OnAcceleratedSurfaceCreatedChildWindow(
192 const gfx::PluginWindowHandle& parent_handle, 192 const gfx::PluginWindowHandle& parent_handle,
193 const gfx::PluginWindowHandle& window_handle); 193 const gfx::PluginWindowHandle& window_handle);
194 #endif 194 #endif
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 // Browser-side Mojo endpoint which sets up a Mojo channel with the child 282 // Browser-side Mojo endpoint which sets up a Mojo channel with the child
283 // process and contains the browser's ServiceRegistry. 283 // process and contains the browser's ServiceRegistry.
284 scoped_ptr<MojoApplicationHost> mojo_application_host_; 284 scoped_ptr<MojoApplicationHost> mojo_application_host_;
285 285
286 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 286 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
287 }; 287 };
288 288
289 } // namespace content 289 } // namespace content
290 290
291 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 291 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698