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

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 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 // died due to fast shutdown versus another cause. 1289 // died due to fast shutdown versus another cause.
1290 fast_shutdown_started_ = true; 1290 fast_shutdown_started_ = true;
1291 1291
1292 ProcessDied(false /* already_dead */); 1292 ProcessDied(false /* already_dead */);
1293 return true; 1293 return true;
1294 } 1294 }
1295 1295
1296 void RenderProcessHostImpl::DumpHandles() { 1296 void RenderProcessHostImpl::DumpHandles() {
1297 #if defined(OS_WIN) 1297 #if defined(OS_WIN)
1298 Send(new ChildProcessMsg_DumpHandles()); 1298 Send(new ChildProcessMsg_DumpHandles());
1299 return; 1299 #else
1300 NOTIMPLEMENTED();
1300 #endif 1301 #endif
1301
1302 NOTIMPLEMENTED();
1303 } 1302 }
1304 1303
1305 // This is a platform specific function for mapping a transport DIB given its id 1304 // This is a platform specific function for mapping a transport DIB given its id
1306 TransportDIB* RenderProcessHostImpl::MapTransportDIB( 1305 TransportDIB* RenderProcessHostImpl::MapTransportDIB(
1307 TransportDIB::Id dib_id) { 1306 TransportDIB::Id dib_id) {
1308 #if defined(OS_WIN) 1307 #if defined(OS_WIN)
1309 // On Windows we need to duplicate the handle from the remote process 1308 // On Windows we need to duplicate the handle from the remote process
1310 HANDLE section; 1309 HANDLE section;
1311 DuplicateHandle(GetHandle(), dib_id.handle, GetCurrentProcess(), &section, 1310 DuplicateHandle(GetHandle(), dib_id.handle, GetCurrentProcess(), &section,
1312 FILE_MAP_READ | FILE_MAP_WRITE, 1311 FILE_MAP_READ | FILE_MAP_WRITE,
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 child_process_launcher_->GetHandle(); 2169 child_process_launcher_->GetHandle();
2171 base::PlatformFile client_file = 2170 base::PlatformFile client_file =
2172 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); 2171 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle());
2173 Send(new MojoMsg_ChannelCreated( 2172 Send(new MojoMsg_ChannelCreated(
2174 IPC::GetFileHandleForProcess(client_file, process_handle, true))); 2173 IPC::GetFileHandleForProcess(client_file, process_handle, true)));
2175 } 2174 }
2176 } 2175 }
2177 #endif 2176 #endif
2178 2177
2179 } // namespace content 2178 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698