GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / content / common / in_process_child_thread_params.h
blob938a6ef080623bfbd03e8a40f09a3859578f5d32
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_
8 #include <string>
10 #include "base/memory/ref_counted.h"
11 #include "base/sequenced_task_runner.h"
12 #include "content/common/content_export.h"
14 namespace content {
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 {
20 public:
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 {
28 return io_runner_;
31 private:
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_