Roll src/third_party/skia ff271c2:b679ca8
[chromium-blink-merge.git] / content / renderer / in_process_renderer_thread.h
blob115616065a371ab4780e171e10d24fa7d2bcef38
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_IN_PROCESS_RENDERER_THREAD_H_
6 #define CONTENT_RENDERER_IN_PROCESS_RENDERER_THREAD_H_
8 #include <string>
10 #include "base/threading/thread.h"
11 #include "content/common/content_export.h"
12 #include "content/common/in_process_child_thread_params.h"
14 namespace content {
15 class RenderProcess;
17 // This class creates the IO thread for the renderer when running in
18 // single-process mode. It's not used in multi-process mode.
19 class InProcessRendererThread : public base::Thread {
20 public:
21 explicit InProcessRendererThread(const InProcessChildThreadParams& params);
22 ~InProcessRendererThread() override;
24 protected:
25 void Init() override;
26 void CleanUp() override;
28 private:
29 InProcessChildThreadParams params_;
30 scoped_ptr<RenderProcess> render_process_;
32 DISALLOW_COPY_AND_ASSIGN(InProcessRendererThread);
35 CONTENT_EXPORT base::Thread* CreateInProcessRendererThread(
36 const InProcessChildThreadParams& params);
38 } // namespace content
40 #endif // CONTENT_RENDERER_IN_PROCESS_RENDERER_THREAD_H_