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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "content/browser/browser_child_process_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/public/browser/content_browser_client.h" 21 #include "content/public/browser/content_browser_client.h"
22 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
23 #include "content/public/browser/notification_types.h" 23 #include "content/public/browser/notification_types.h"
24 #include "content/public/common/content_switches.h" 24 #include "content/public/common/content_switches.h"
25 #include "content/public/common/result_codes.h" 25 #include "content/public/common/result_codes.h"
26 26
27 #if defined(OS_WIN) 27 #if defined(OS_WIN)
28 #include "base/synchronization/waitable_event.h" 28 #include "base/synchronization/waitable_event.h"
29 #endif // OS_WIN 29 #endif // OS_WIN
30 30
31 using content::BrowserThread;
32
31 namespace { 33 namespace {
32 34
33 typedef std::list<BrowserChildProcessHost*> ChildProcessList; 35 typedef std::list<BrowserChildProcessHost*> ChildProcessList;
34 static base::LazyInstance<ChildProcessList> g_child_process_list( 36 static base::LazyInstance<ChildProcessList> g_child_process_list(
35 base::LINKER_INITIALIZED); 37 base::LINKER_INITIALIZED);
36 38
37 // The NotificationTask is used to notify about plugin process connection/ 39 // The NotificationTask is used to notify about plugin process connection/
38 // disconnection. It is needed because the notifications in the 40 // disconnection. It is needed because the notifications in the
39 // NotificationService must happen in the main thread. 41 // NotificationService must happen in the main thread.
40 class ChildNotificationTask : public Task { 42 class ChildNotificationTask : public Task {
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 254
253 return *iterator_; 255 return *iterator_;
254 } while (true); 256 } while (true);
255 257
256 return NULL; 258 return NULL;
257 } 259 }
258 260
259 bool BrowserChildProcessHost::Iterator::Done() { 261 bool BrowserChildProcessHost::Iterator::Done() {
260 return iterator_ == g_child_process_list.Get().end(); 262 return iterator_ == g_child_process_list.Get().end();
261 } 263 }
OLDNEW
« no previous file with comments | « content/browser/appcache/chrome_appcache_service_unittest.cc ('k') | content/browser/browser_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698