
This introduces a new MojoDedicatedThread feature to Content which, when
enabled, changes Mojo to use a dedicated background thread for receiving
incoming IPCs rather than using Content's IO thread.
The feature is disabled by default.
Bug: 1082761
Change-Id: Ia68f288309a316be14b5254e9c4f006b6f8c74cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2202143
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#768903}
31 lines
935 B
C++
31 lines
935 B
C++
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef CONTENT_BROWSER_STARTUP_DATA_IMPL_H_
|
|
#define CONTENT_BROWSER_STARTUP_DATA_IMPL_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "base/callback.h"
|
|
#include "content/browser/browser_process_sub_thread.h"
|
|
#include "content/common/content_export.h"
|
|
#include "content/public/browser/startup_data.h"
|
|
#include "mojo/core/embedder/scoped_ipc_support.h"
|
|
|
|
namespace content {
|
|
|
|
// The browser implementation of StartupData.
|
|
struct CONTENT_EXPORT StartupDataImpl : public StartupData {
|
|
StartupDataImpl();
|
|
~StartupDataImpl() override;
|
|
|
|
std::unique_ptr<BrowserProcessSubThread> io_thread;
|
|
std::unique_ptr<mojo::core::ScopedIPCSupport> mojo_ipc_support;
|
|
base::OnceClosure service_manager_shutdown_closure;
|
|
};
|
|
|
|
} // namespace content
|
|
|
|
#endif // CONTENT_BROWSER_STARTUP_DATA_IMPL_H_
|