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

Side by Side Diff: components/nacl/common/nacl_debug_exception_handler_win.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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
« no previous file with comments | « components/nacl/common/nacl_cmd_line.cc ('k') | components/nacl/common/nacl_host_messages.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "components/nacl/common/nacl_debug_exception_handler_win.h" 5 #include "components/nacl/common/nacl_debug_exception_handler_win.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h"
8 #include "base/threading/platform_thread.h" 9 #include "base/threading/platform_thread.h"
9 #include "base/win/scoped_handle.h" 10 #include "base/win/scoped_handle.h"
10 #include "native_client/src/public/win/debug_exception_handler.h" 11 #include "native_client/src/public/win/debug_exception_handler.h"
11 12
12 namespace { 13 namespace {
13 14
14 class DebugExceptionHandler : public base::PlatformThread::Delegate { 15 class DebugExceptionHandler : public base::PlatformThread::Delegate {
15 public: 16 public:
16 DebugExceptionHandler(base::Process nacl_process, 17 DebugExceptionHandler(base::Process nacl_process,
17 const std::string& startup_info, 18 const std::string& startup_info,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const base::Callback<void(bool)>& on_connected) { 70 const base::Callback<void(bool)>& on_connected) {
70 // The new PlatformThread will take ownership of the 71 // The new PlatformThread will take ownership of the
71 // DebugExceptionHandler object, which will delete itself on exit. 72 // DebugExceptionHandler object, which will delete itself on exit.
72 DebugExceptionHandler* handler = new DebugExceptionHandler( 73 DebugExceptionHandler* handler = new DebugExceptionHandler(
73 nacl_process.Pass(), startup_info, task_runner, on_connected); 74 nacl_process.Pass(), startup_info, task_runner, on_connected);
74 if (!base::PlatformThread::CreateNonJoinable(0, handler)) { 75 if (!base::PlatformThread::CreateNonJoinable(0, handler)) {
75 on_connected.Run(false); 76 on_connected.Run(false);
76 delete handler; 77 delete handler;
77 } 78 }
78 } 79 }
OLDNEW
« no previous file with comments | « components/nacl/common/nacl_cmd_line.cc ('k') | components/nacl/common/nacl_host_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698