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

Side by Side Diff: content/browser/browser_child_process_host_impl.cc

Issue 9683003: Aura: Show dialog box asking user's permisssion for screen sharing for gtalk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 9 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 | « chrome/chrome_browser.gypi ('k') | content/public/browser/content_browser_client.h » ('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 #include "content/browser/browser_child_process_host_impl.h" 5 #include "content/browser/browser_child_process_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ALLOW_THIS_IN_INITIALIZER_LIST(task_factory_(this)), 86 ALLOW_THIS_IN_INITIALIZER_LIST(task_factory_(this)),
87 #endif 87 #endif
88 disconnect_was_alive_(false) { 88 disconnect_was_alive_(false) {
89 data_.id = ChildProcessHostImpl::GenerateChildProcessUniqueId(); 89 data_.id = ChildProcessHostImpl::GenerateChildProcessUniqueId();
90 90
91 child_process_host_.reset(ChildProcessHost::Create(this)); 91 child_process_host_.reset(ChildProcessHost::Create(this));
92 child_process_host_->AddFilter(new TraceMessageFilter); 92 child_process_host_->AddFilter(new TraceMessageFilter);
93 child_process_host_->AddFilter(new ProfilerMessageFilter); 93 child_process_host_->AddFilter(new ProfilerMessageFilter);
94 94
95 g_child_process_list.Get().push_back(this); 95 g_child_process_list.Get().push_back(this);
96 content::GetContentClient()->browser()->BrowserChildProcessHostCreated(this);
96 } 97 }
97 98
98 BrowserChildProcessHostImpl::~BrowserChildProcessHostImpl() { 99 BrowserChildProcessHostImpl::~BrowserChildProcessHostImpl() {
99 g_child_process_list.Get().remove(this); 100 g_child_process_list.Get().remove(this);
100 } 101 }
101 102
102 // static 103 // static
103 void BrowserChildProcessHostImpl::TerminateAll() { 104 void BrowserChildProcessHostImpl::TerminateAll() {
104 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 105 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
105 // Make a copy since the BrowserChildProcessHost dtor mutates the original 106 // Make a copy since the BrowserChildProcessHost dtor mutates the original
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 321
321 322
322 void BrowserChildProcessHostImpl::OnProcessLaunched() { 323 void BrowserChildProcessHostImpl::OnProcessLaunched() {
323 if (!child_process_->GetHandle()) { 324 if (!child_process_->GetHandle()) {
324 delete delegate_; // Will delete us 325 delete delegate_; // Will delete us
325 return; 326 return;
326 } 327 }
327 data_.handle = child_process_->GetHandle(); 328 data_.handle = child_process_->GetHandle();
328 delegate_->OnProcessLaunched(); 329 delegate_->OnProcessLaunched();
329 } 330 }
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698