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

Side by Side Diff: chrome/browser/gpu_process_host.h

Issue 2885017: Moved common parts of ChildProcessHost into chrome/common and created a Brows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Code review changes Created 10 years, 5 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
« no previous file with comments | « chrome/browser/child_process_host.cc ('k') | chrome/browser/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_GPU_PROCESS_HOST_H_ 5 #ifndef CHROME_BROWSER_GPU_PROCESS_HOST_H_
6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_ 6 #define CHROME_BROWSER_GPU_PROCESS_HOST_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "chrome/browser/child_process_host.h" 12 #include "chrome/browser/browser_child_process_host.h"
13 #include "chrome/browser/renderer_host/resource_message_filter.h" 13 #include "chrome/browser/renderer_host/resource_message_filter.h"
14 #include "gfx/native_widget_types.h" 14 #include "gfx/native_widget_types.h"
15 15
16 class ChildProcessLauncher; 16 class ChildProcessLauncher;
17 class CommandBufferProxy; 17 class CommandBufferProxy;
18 18
19 namespace IPC { 19 namespace IPC {
20 struct ChannelHandle; 20 struct ChannelHandle;
21 class Message; 21 class Message;
22 } 22 }
23 23
24 class GpuProcessHost : public ChildProcessHost { 24 class GpuProcessHost : public BrowserChildProcessHost {
25 public: 25 public:
26 // Getter for the singleton. This will return NULL on failure. 26 // Getter for the singleton. This will return NULL on failure.
27 static GpuProcessHost* Get(); 27 static GpuProcessHost* Get();
28 28
29 // Shutdown routine, which should only be called upon process 29 // Shutdown routine, which should only be called upon process
30 // termination. 30 // termination.
31 static void Shutdown(); 31 static void Shutdown();
32 32
33 virtual bool Send(IPC::Message* msg); 33 virtual bool Send(IPC::Message* msg);
34 34
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // the GPU process, but haven't heard back about yet. 107 // the GPU process, but haven't heard back about yet.
108 std::queue<ChannelRequest> sent_requests_; 108 std::queue<ChannelRequest> sent_requests_;
109 109
110 // The pending synchronization requests we need to reply to. 110 // The pending synchronization requests we need to reply to.
111 std::queue<SynchronizationRequest> queued_synchronization_replies_; 111 std::queue<SynchronizationRequest> queued_synchronization_replies_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 113 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
114 }; 114 };
115 115
116 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_ 116 #endif // CHROME_BROWSER_GPU_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/child_process_host.cc ('k') | chrome/browser/gpu_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698