chrome.bluetoothSocket: clean-up Listen functions
[chromium-blink-merge.git] / content / renderer / in_process_renderer_thread.h
blobbc5a5d3d2cfad30b3ccee591ef8747f1468d68ce
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"
13 namespace content {
14 class RenderProcess;
16 // This class creates the IO thread for the renderer when running in
17 // single-process mode. It's not used in multi-process mode.
18 class InProcessRendererThread : public base::Thread {
19 public:
20 explicit InProcessRendererThread(const std::string& channel_id);
21 virtual ~InProcessRendererThread();
23 protected:
24 virtual void Init() OVERRIDE;
25 virtual void CleanUp() OVERRIDE;
27 private:
28 std::string channel_id_;
29 scoped_ptr<RenderProcess> render_process_;
31 DISALLOW_COPY_AND_ASSIGN(InProcessRendererThread);
34 CONTENT_EXPORT base::Thread* CreateInProcessRendererThread(
35 const std::string& channel_id);
37 } // namespace content
39 #endif // CONTENT_RENDERER_IN_PROCESS_RENDERER_THREAD_H_