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

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

Issue 202863004: Fix "unreachable code" warnings (MSVC warning 4702) in content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 9 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 // died due to fast shutdown versus another cause. 1292 // died due to fast shutdown versus another cause.
1293 fast_shutdown_started_ = true; 1293 fast_shutdown_started_ = true;
1294 1294
1295 ProcessDied(false /* already_dead */); 1295 ProcessDied(false /* already_dead */);
1296 return true; 1296 return true;
1297 } 1297 }
1298 1298
1299 void RenderProcessHostImpl::DumpHandles() { 1299 void RenderProcessHostImpl::DumpHandles() {
1300 #if defined(OS_WIN) 1300 #if defined(OS_WIN)
1301 Send(new ChildProcessMsg_DumpHandles()); 1301 Send(new ChildProcessMsg_DumpHandles());
1302 return; 1302 #else
1303 NOTIMPLEMENTED();
1303 #endif 1304 #endif
1304
1305 NOTIMPLEMENTED();
1306 } 1305 }
1307 1306
1308 // This is a platform specific function for mapping a transport DIB given its id 1307 // This is a platform specific function for mapping a transport DIB given its id
1309 TransportDIB* RenderProcessHostImpl::MapTransportDIB( 1308 TransportDIB* RenderProcessHostImpl::MapTransportDIB(
1310 TransportDIB::Id dib_id) { 1309 TransportDIB::Id dib_id) {
1311 #if defined(OS_WIN) 1310 #if defined(OS_WIN)
1312 // On Windows we need to duplicate the handle from the remote process 1311 // On Windows we need to duplicate the handle from the remote process
1313 HANDLE section; 1312 HANDLE section;
1314 DuplicateHandle(GetHandle(), dib_id.handle, GetCurrentProcess(), &section, 1313 DuplicateHandle(GetHandle(), dib_id.handle, GetCurrentProcess(), &section,
1315 FILE_MAP_READ | FILE_MAP_WRITE, 1314 FILE_MAP_READ | FILE_MAP_WRITE,
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
2173 child_process_launcher_->GetHandle(); 2172 child_process_launcher_->GetHandle();
2174 base::PlatformFile client_file = 2173 base::PlatformFile client_file =
2175 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); 2174 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle());
2176 Send(new MojoMsg_ChannelCreated( 2175 Send(new MojoMsg_ChannelCreated(
2177 IPC::GetFileHandleForProcess(client_file, process_handle, true))); 2176 IPC::GetFileHandleForProcess(client_file, process_handle, true)));
2178 } 2177 }
2179 } 2178 }
2180 #endif 2179 #endif
2181 2180
2182 } // namespace content 2181 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698