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

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

Issue 7661031: Tag IPC::Channel::Listener implementations with OVERRIDE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 IPC::Message* message); 47 IPC::Message* message);
48 48
49 // Get the GPU process host for the GPU process with the given ID. Returns 49 // Get the GPU process host for the GPU process with the given ID. Returns
50 // null if the process no longer exists. 50 // null if the process no longer exists.
51 static GpuProcessHost* FromID(int host_id); 51 static GpuProcessHost* FromID(int host_id);
52 int host_id() const { return host_id_; } 52 int host_id() const { return host_id_; }
53 53
54 virtual bool Send(IPC::Message* msg); 54 virtual bool Send(IPC::Message* msg);
55 55
56 // ChildProcessHost implementation. 56 // ChildProcessHost implementation.
57 virtual bool OnMessageReceived(const IPC::Message& message); 57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
58 virtual void OnChannelConnected(int32 peer_pid); 58 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
59 59
60 typedef Callback3<const IPC::ChannelHandle&, 60 typedef Callback3<const IPC::ChannelHandle&,
61 base::ProcessHandle, 61 base::ProcessHandle,
62 const GPUInfo&>::Type 62 const GPUInfo&>::Type
63 EstablishChannelCallback; 63 EstablishChannelCallback;
64 64
65 // Tells the GPU process to create a new channel for communication with a 65 // Tells the GPU process to create a new channel for communication with a
66 // renderer. Once the GPU process responds asynchronously with the IPC handle 66 // renderer. Once the GPU process responds asynchronously with the IPC handle
67 // and GPUInfo, we call the callback. 67 // and GPUInfo, we call the callback.
68 void EstablishGpuChannel( 68 void EstablishGpuChannel(
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 // Master switch for enabling/disabling GPU acceleration for the current 153 // Master switch for enabling/disabling GPU acceleration for the current
154 // browser session. It does not change the acceleration settings for 154 // browser session. It does not change the acceleration settings for
155 // existing tabs, just the future ones. 155 // existing tabs, just the future ones.
156 static bool gpu_enabled_; 156 static bool gpu_enabled_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost); 158 DISALLOW_COPY_AND_ASSIGN(GpuProcessHost);
159 }; 159 };
160 160
161 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_ 161 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698