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

Side by Side Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 #include "chrome/browser/nacl_host/nacl_process_host.h" 5 #include "chrome/browser/nacl_host/nacl_process_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 class NaClProcessHost::NaClGdbWatchDelegate 378 class NaClProcessHost::NaClGdbWatchDelegate
379 : public MessageLoopForIO::Watcher { 379 : public MessageLoopForIO::Watcher {
380 public: 380 public:
381 // fd_write_ is used by nacl-gdb via /proc/browser_PID/fd/fd_write_ 381 // fd_write_ is used by nacl-gdb via /proc/browser_PID/fd/fd_write_
382 NaClGdbWatchDelegate(int fd_read, int fd_write, 382 NaClGdbWatchDelegate(int fd_read, int fd_write,
383 const base::Closure& reply) 383 const base::Closure& reply)
384 : fd_read_(fd_read), 384 : fd_read_(fd_read),
385 fd_write_(fd_write), 385 fd_write_(fd_write),
386 reply_(reply) {} 386 reply_(reply) {}
387 387
388 ~NaClGdbWatchDelegate() { 388 virtual ~NaClGdbWatchDelegate() {
389 if (HANDLE_EINTR(close(fd_read_)) != 0) 389 if (HANDLE_EINTR(close(fd_read_)) != 0)
390 DLOG(ERROR) << "close(fd_read_) failed"; 390 DLOG(ERROR) << "close(fd_read_) failed";
391 if (HANDLE_EINTR(close(fd_write_)) != 0) 391 if (HANDLE_EINTR(close(fd_write_)) != 0)
392 DLOG(ERROR) << "close(fd_write_) failed"; 392 DLOG(ERROR) << "close(fd_write_) failed";
393 } 393 }
394 394
395 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE; 395 virtual void OnFileCanReadWithoutBlocking(int fd) OVERRIDE;
396 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {} 396 virtual void OnFileCanWriteWithoutBlocking(int fd) OVERRIDE {}
397 397
398 private: 398 private:
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 } else { 939 } else {
940 NaClStartDebugExceptionHandlerThread( 940 NaClStartDebugExceptionHandlerThread(
941 process_handle.Take(), info, 941 process_handle.Take(), info,
942 base::MessageLoopProxy::current(), 942 base::MessageLoopProxy::current(),
943 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker, 943 base::Bind(&NaClProcessHost::OnDebugExceptionHandlerLaunchedByBroker,
944 weak_factory_.GetWeakPtr())); 944 weak_factory_.GetWeakPtr()));
945 return true; 945 return true;
946 } 946 }
947 } 947 }
948 #endif 948 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698