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

Side by Side Diff: content/browser/renderer_host/gpu_message_filter.cc

Issue 7477008: Remove explicit keyword from multi-argument constructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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_frame/test/test_server.h ('k') | content/browser/zygote_main_linux.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) 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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <windows.h> 6 #include <windows.h>
7 #endif 7 #endif
8 8
9 #include "content/browser/renderer_host/gpu_message_filter.h" 9 #include "content/browser/renderer_host/gpu_message_filter.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 // Callbacks used in this file. 47 // Callbacks used in this file.
48 namespace { 48 namespace {
49 49
50 class EstablishChannelCallback 50 class EstablishChannelCallback
51 : public CallbackRunner<Tuple3<const IPC::ChannelHandle&, 51 : public CallbackRunner<Tuple3<const IPC::ChannelHandle&,
52 base::ProcessHandle, 52 base::ProcessHandle,
53 const GPUInfo&> > { 53 const GPUInfo&> > {
54 public: 54 public:
55 explicit EstablishChannelCallback(GpuMessageFilter* filter, 55 EstablishChannelCallback(GpuMessageFilter* filter, IPC::Message* reply)
56 IPC::Message* reply) : 56 : filter_(filter->AsWeakPtr()),
57 filter_(filter->AsWeakPtr()), 57 reply_(reply) {
58 reply_(reply) {
59 } 58 }
60 59
61 virtual void RunWithParams(const TupleType& params) { 60 virtual void RunWithParams(const TupleType& params) {
62 DispatchToMethod(this, &EstablishChannelCallback::Send, params); 61 DispatchToMethod(this, &EstablishChannelCallback::Send, params);
63 } 62 }
64 63
65 void Send(const IPC::ChannelHandle& channel, 64 void Send(const IPC::ChannelHandle& channel,
66 base::ProcessHandle gpu_process_for_browser, 65 base::ProcessHandle gpu_process_for_browser,
67 const GPUInfo& gpu_info) { 66 const GPUInfo& gpu_info) {
68 if (!filter_) 67 if (!filter_)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return; 172 return;
174 } 173 }
175 174
176 host->CreateViewCommandBuffer( 175 host->CreateViewCommandBuffer(
177 compositing_surface, 176 compositing_surface,
178 render_view_id, 177 render_view_id,
179 render_process_id_, 178 render_process_id_,
180 init_params, 179 init_params,
181 new CreateCommandBufferCallback(this, reply)); 180 new CreateCommandBufferCallback(this, reply));
182 } 181 }
OLDNEW
« no previous file with comments | « chrome_frame/test/test_server.h ('k') | content/browser/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698