1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_IN_PROCESS_CHILD_THREAD_PARAMS_H_
6 #define CONTENT_COMMON_IN_PROCESS_CHILD_THREAD_PARAMS_H_
10 #include "base/memory/ref_counted.h"
11 #include "base/sequenced_task_runner.h"
12 #include "content/common/content_export.h"
16 // Tells ChildThreadImpl to run in in-process mode. There are a couple of
17 // parameters to run in the mode: An emulated io task runner used by
18 // ChnanelMojo, an IPC channel name to open.
19 class CONTENT_EXPORT InProcessChildThreadParams
{
21 InProcessChildThreadParams(
22 const std::string
& channel_name
,
23 scoped_refptr
<base::SequencedTaskRunner
> io_runner
);
24 ~InProcessChildThreadParams();
26 const std::string
& channel_name() const { return channel_name_
; }
27 scoped_refptr
<base::SequencedTaskRunner
> io_runner() const {
32 std::string channel_name_
;
33 scoped_refptr
<base::SequencedTaskRunner
> io_runner_
;
36 } // namespace content
38 #endif // CONTENT_COMMON_IN_PROCESS_CHILD_THREAD_PARAMS_H_