OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |