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

Side by Side Diff: components/nacl/browser/nacl_broker_service_win.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
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 #ifndef COMPONENTS_NACL_BROWSER_NACL_BROKER_SERVICE_WIN_H_ 5 #ifndef COMPONENTS_NACL_BROWSER_NACL_BROKER_SERVICE_WIN_H_
6 #define COMPONENTS_NACL_BROWSER_NACL_BROKER_SERVICE_WIN_H_ 6 #define COMPONENTS_NACL_BROWSER_NACL_BROKER_SERVICE_WIN_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Called by NaClBrokerHost to notify the service that a debug 44 // Called by NaClBrokerHost to notify the service that a debug
45 // exception handler was started. 45 // exception handler was started.
46 void OnDebugExceptionHandlerLaunched(int32 pid, bool success); 46 void OnDebugExceptionHandlerLaunched(int32 pid, bool success);
47 47
48 private: 48 private:
49 typedef std::map<std::string, base::WeakPtr<NaClProcessHost> > 49 typedef std::map<std::string, base::WeakPtr<NaClProcessHost> >
50 PendingLaunchesMap; 50 PendingLaunchesMap;
51 typedef std::map<int, base::WeakPtr<NaClProcessHost> > 51 typedef std::map<int, base::WeakPtr<NaClProcessHost> >
52 PendingDebugExceptionHandlersMap; 52 PendingDebugExceptionHandlersMap;
53 53
54 friend struct DefaultSingletonTraits<NaClBrokerService>; 54 friend struct base::DefaultSingletonTraits<NaClBrokerService>;
55 55
56 NaClBrokerService(); 56 NaClBrokerService();
57 ~NaClBrokerService(); 57 ~NaClBrokerService();
58 58
59 NaClBrokerHost* GetBrokerHost(); 59 NaClBrokerHost* GetBrokerHost();
60 60
61 int loaders_running_; 61 int loaders_running_;
62 PendingLaunchesMap pending_launches_; 62 PendingLaunchesMap pending_launches_;
63 PendingDebugExceptionHandlersMap pending_debuggers_; 63 PendingDebugExceptionHandlersMap pending_debuggers_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(NaClBrokerService); 65 DISALLOW_COPY_AND_ASSIGN(NaClBrokerService);
66 }; 66 };
67 67
68 } // namespace nacl 68 } // namespace nacl
69 69
70 #endif // COMPONENTS_NACL_BROWSER_NACL_BROKER_SERVICE_WIN_H_ 70 #endif // COMPONENTS_NACL_BROWSER_NACL_BROKER_SERVICE_WIN_H_
OLDNEW
« no previous file with comments | « components/metrics/call_stack_profile_metrics_provider.cc ('k') | components/nacl/browser/nacl_broker_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698