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

Side by Side Diff: tools/ipc_fuzzer/replay/replay_process.cc

Issue 136683004: Removes MessageLoop::TYPE_XXX where possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 6 years, 11 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 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 "tools/ipc_fuzzer/replay/replay_process.h" 5 #include "tools/ipc_fuzzer/replay/replay_process.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <string> 8 #include <string>
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/posix/global_descriptors.h" 13 #include "base/posix/global_descriptors.h"
14 #include "chrome/common/chrome_switches.h" 14 #include "chrome/common/chrome_switches.h"
15 #include "ipc/ipc_descriptors.h" 15 #include "ipc/ipc_descriptors.h"
16 #include "ipc/ipc_switches.h" 16 #include "ipc/ipc_switches.h"
17 17
18 namespace ipc_fuzzer { 18 namespace ipc_fuzzer {
19 19
20 ReplayProcess::ReplayProcess() 20 ReplayProcess::ReplayProcess()
21 : main_loop_(base::MessageLoop::TYPE_DEFAULT), 21 : io_thread_("Chrome_ChildIOThread"),
22 io_thread_("Chrome_ChildIOThread"),
23 shutdown_event_(true, false), 22 shutdown_event_(true, false),
24 message_index_(0) { 23 message_index_(0) {
25 } 24 }
26 25
27 ReplayProcess::~ReplayProcess() { 26 ReplayProcess::~ReplayProcess() {
28 channel_.reset(); 27 channel_.reset();
29 } 28 }
30 29
31 bool ReplayProcess::Initialize(int argc, const char** argv) { 30 bool ReplayProcess::Initialize(int argc, const char** argv) {
32 CommandLine::Init(argc, argv); 31 CommandLine::Init(argc, argv);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 return true; 98 return true;
100 } 99 }
101 100
102 void ReplayProcess::OnChannelError() { 101 void ReplayProcess::OnChannelError() {
103 LOG(ERROR) << "Channel error, quitting after " 102 LOG(ERROR) << "Channel error, quitting after "
104 << message_index_ << " messages"; 103 << message_index_ << " messages";
105 base::MessageLoop::current()->Quit(); 104 base::MessageLoop::current()->Quit();
106 } 105 }
107 106
108 } // namespace ipc_fuzzer 107 } // namespace ipc_fuzzer
OLDNEW
« no previous file with comments | « remoting/host/win/worker_process_launcher_unittest.cc ('k') | ui/message_center/message_center_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698