0
Files
src/content/renderer/in_process_renderer_thread.h
Peter Boström 1d6a095400 Remove unused "base/macros.h" in content/
Removes `#include "base/macros.h"` from files in content/ that do not
contain `ignore_result(`.

Bug: 1010217
No-Try: true
Change-Id: I887403408704241047e3bd66e953ff7df195368b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3274993
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Owners-Override: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#940781}
2021-11-11 16:07:03 +00:00

46 lines
1.4 KiB
C++

// Copyright 2013 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_RENDERER_IN_PROCESS_RENDERER_THREAD_H_
#define CONTENT_RENDERER_IN_PROCESS_RENDERER_THREAD_H_
#include <memory>
#include "base/threading/thread.h"
#include "content/common/content_export.h"
#include "content/common/in_process_child_thread_params.h"
namespace content {
class RenderProcess;
// This class creates the IO thread for the renderer when running in
// single-process mode. It's not used in multi-process mode.
class InProcessRendererThread : public base::Thread {
public:
InProcessRendererThread(const InProcessChildThreadParams& params,
int32_t renderer_client_id);
InProcessRendererThread(const InProcessRendererThread&) = delete;
InProcessRendererThread& operator=(const InProcessRendererThread&) = delete;
~InProcessRendererThread() override;
protected:
void Init() override;
void CleanUp() override;
private:
const InProcessChildThreadParams params_;
const int32_t renderer_client_id_;
std::unique_ptr<RenderProcess> render_process_;
};
CONTENT_EXPORT base::Thread* CreateInProcessRendererThread(
const InProcessChildThreadParams& params,
int32_t renderer_client_id);
} // namespace content
#endif // CONTENT_RENDERER_IN_PROCESS_RENDERER_THREAD_H_