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

Side by Side Diff: content/public/browser/browser_child_process_host_iterator.cc

Issue 22243002: GTTF: Enable glibcxx debug mode for Debug builds by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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
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/public/browser/browser_child_process_host_iterator.h" 5 #include "content/public/browser/browser_child_process_host_iterator.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/browser_child_process_host_impl.h" 8 #include "content/browser/browser_child_process_host_impl.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 10
(...skipping 11 matching lines...) Expand all
22 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)) << 22 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)) <<
23 "BrowserChildProcessHostIterator must be used on the IO thread."; 23 "BrowserChildProcessHostIterator must be used on the IO thread.";
24 DCHECK_NE(PROCESS_TYPE_RENDERER, type) << 24 DCHECK_NE(PROCESS_TYPE_RENDERER, type) <<
25 "BrowserChildProcessHostIterator doesn't work for renderer processes; " 25 "BrowserChildProcessHostIterator doesn't work for renderer processes; "
26 "try RenderProcessHost::AllHostsIterator() instead."; 26 "try RenderProcessHost::AllHostsIterator() instead.";
27 iterator_ = BrowserChildProcessHostImpl::GetIterator()->begin(); 27 iterator_ = BrowserChildProcessHostImpl::GetIterator()->begin();
28 if (!Done() && (*iterator_)->GetData().process_type != process_type_) 28 if (!Done() && (*iterator_)->GetData().process_type != process_type_)
29 ++(*this); 29 ++(*this);
30 } 30 }
31 31
32 BrowserChildProcessHostIterator::~BrowserChildProcessHostIterator() {
33 }
34
32 bool BrowserChildProcessHostIterator::operator++() { 35 bool BrowserChildProcessHostIterator::operator++() {
33 CHECK(!Done()); 36 CHECK(!Done());
34 do { 37 do {
35 ++iterator_; 38 ++iterator_;
36 if (Done()) 39 if (Done())
37 break; 40 break;
38 41
39 if (!all_ && (*iterator_)->GetData().process_type != process_type_) 42 if (!all_ && (*iterator_)->GetData().process_type != process_type_)
40 continue; 43 continue;
41 44
(...skipping 16 matching lines...) Expand all
58 CHECK(!Done()); 61 CHECK(!Done());
59 return (*iterator_)->Send(message); 62 return (*iterator_)->Send(message);
60 } 63 }
61 64
62 BrowserChildProcessHostDelegate* 65 BrowserChildProcessHostDelegate*
63 BrowserChildProcessHostIterator::GetDelegate() { 66 BrowserChildProcessHostIterator::GetDelegate() {
64 return (*iterator_)->delegate(); 67 return (*iterator_)->delegate();
65 } 68 }
66 69
67 } // namespace content 70 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/browser_child_process_host_iterator.h ('k') | net/tools/flip_server/output_ordering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698