Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 9297022: Change ChildProcess::set_main_thread registration to occur inside the RenderThreadImpl::Init method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 Stop(); 135 Stop();
136 } 136 }
137 137
138 protected: 138 protected:
139 virtual void Init() { 139 virtual void Init() {
140 #if defined(OS_WIN) 140 #if defined(OS_WIN)
141 CoInitialize(NULL); 141 CoInitialize(NULL);
142 #endif 142 #endif
143 143
144 render_process_ = new RenderProcessImpl(); 144 render_process_ = new RenderProcessImpl();
145 render_process_->set_main_thread(new RenderThreadImpl(channel_id_)); 145 new RenderThreadImpl(channel_id_);
146 } 146 }
147 147
148 virtual void CleanUp() { 148 virtual void CleanUp() {
149 delete render_process_; 149 delete render_process_;
150 150
151 #if defined(OS_WIN) 151 #if defined(OS_WIN)
152 CoUninitialize(); 152 CoUninitialize();
153 #endif 153 #endif
154 // It's a little lame to manually set this flag. But the single process 154 // It's a little lame to manually set this flag. But the single process
155 // RendererThread will receive the WM_QUIT. We don't need to assert on 155 // RendererThread will receive the WM_QUIT. We don't need to assert on
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1295 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1296 // Only honor the request if appropriate persmissions are granted. 1296 // Only honor the request if appropriate persmissions are granted.
1297 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) 1297 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path))
1298 content::GetContentClient()->browser()->OpenItem(path); 1298 content::GetContentClient()->browser()->OpenItem(path);
1299 } 1299 }
1300 1300
1301 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1301 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1302 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1302 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1303 MHTMLGenerated(job_id, data_size); 1303 MHTMLGenerated(job_id, data_size);
1304 } 1304 }
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698