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

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

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 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
« no previous file with comments | « content/browser/bluetooth/bluetooth_blocklist.h ('k') | content/browser/browser_context.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 #include "content/browser/browser_child_process_host_impl.h" 5 #include "content/browser/browser_child_process_host_impl.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/alias.h" 10 #include "base/debug/alias.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "mojo/edk/embedder/embedder.h" 51 #include "mojo/edk/embedder/embedder.h"
52 #include "services/service_manager/public/cpp/interface_registry.h" 52 #include "services/service_manager/public/cpp/interface_registry.h"
53 53
54 #if defined(OS_MACOSX) 54 #if defined(OS_MACOSX)
55 #include "content/browser/mach_broker_mac.h" 55 #include "content/browser/mach_broker_mac.h"
56 #endif 56 #endif
57 57
58 namespace content { 58 namespace content {
59 namespace { 59 namespace {
60 60
61 static base::LazyInstance<BrowserChildProcessHostImpl::BrowserChildProcessList> 61 static base::LazyInstance<
62 BrowserChildProcessHostImpl::BrowserChildProcessList>::DestructorAtExit
62 g_child_process_list = LAZY_INSTANCE_INITIALIZER; 63 g_child_process_list = LAZY_INSTANCE_INITIALIZER;
63 64
64 base::LazyInstance<base::ObserverList<BrowserChildProcessObserver>> 65 base::LazyInstance<base::ObserverList<BrowserChildProcessObserver>>::
65 g_observers = LAZY_INSTANCE_INITIALIZER; 66 DestructorAtExit g_observers = LAZY_INSTANCE_INITIALIZER;
66 67
67 void NotifyProcessLaunchedAndConnected(const ChildProcessData& data) { 68 void NotifyProcessLaunchedAndConnected(const ChildProcessData& data) {
68 for (auto& observer : g_observers.Get()) 69 for (auto& observer : g_observers.Get())
69 observer.BrowserChildProcessLaunchedAndConnected(data); 70 observer.BrowserChildProcessLaunchedAndConnected(data);
70 } 71 }
71 72
72 void NotifyProcessHostConnected(const ChildProcessData& data) { 73 void NotifyProcessHostConnected(const ChildProcessData& data) {
73 for (auto& observer : g_observers.Get()) 74 for (auto& observer : g_observers.Get())
74 observer.BrowserChildProcessHostConnected(data); 75 observer.BrowserChildProcessHostConnected(data);
75 } 76 }
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 615
615 #if defined(OS_WIN) 616 #if defined(OS_WIN)
616 617
617 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) { 618 void BrowserChildProcessHostImpl::OnObjectSignaled(HANDLE object) {
618 OnChildDisconnected(); 619 OnChildDisconnected();
619 } 620 }
620 621
621 #endif 622 #endif
622 623
623 } // namespace content 624 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/bluetooth/bluetooth_blocklist.h ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698