This source file includes following definitions.
- channel_id_
- Init
- CleanUp
- CreateInProcessRendererThread
#include "content/renderer/in_process_renderer_thread.h"
#include "content/renderer/render_process.h"
#include "content/renderer/render_process_impl.h"
#include "content/renderer/render_thread_impl.h"
namespace content {
InProcessRendererThread::InProcessRendererThread(const std::string& channel_id)
: Thread("Chrome_InProcRendererThread"), channel_id_(channel_id) {
}
InProcessRendererThread::~InProcessRendererThread() {
Stop();
}
void InProcessRendererThread::Init() {
render_process_.reset(new RenderProcessImpl());
new RenderThreadImpl(channel_id_);
}
void InProcessRendererThread::CleanUp() {
render_process_.reset();
SetThreadWasQuitProperly(true);
}
base::Thread* CreateInProcessRendererThread(const std::string& channel_id) {
return new InProcessRendererThread(channel_id);
}
}