OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // @file | 5 // @file |
6 // ICeeeBroker implementation. | 6 // ICeeeBroker implementation. |
7 | 7 |
8 #ifndef CEEE_IE_BROKER_BROKER_H_ | 8 #ifndef CEEE_IE_BROKER_BROKER_H_ |
9 #define CEEE_IE_BROKER_BROKER_H_ | 9 #define CEEE_IE_BROKER_BROKER_H_ |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 : public CComObjectRootEx<CComMultiThreadModel>, | 28 : public CComObjectRootEx<CComMultiThreadModel>, |
29 public CComCoClass<CeeeBroker, &CLSID_CeeeBroker>, | 29 public CComCoClass<CeeeBroker, &CLSID_CeeeBroker>, |
30 public ICeeeBroker, | 30 public ICeeeBroker, |
31 public ICeeeBrokerRegistrar, | 31 public ICeeeBrokerRegistrar, |
32 public IExternalConnectionImpl<CeeeBroker> { | 32 public IExternalConnectionImpl<CeeeBroker> { |
33 public: | 33 public: |
34 DECLARE_REGISTRY_RESOURCEID_EX(IDR_BROKER) | 34 DECLARE_REGISTRY_RESOURCEID_EX(IDR_BROKER) |
35 BEGIN_REGISTRY_MAP(CeeeBroker) | 35 BEGIN_REGISTRY_MAP(CeeeBroker) |
36 REGMAP_UUID("CLSID", CLSID_CeeeBroker) | 36 REGMAP_UUID("CLSID", CLSID_CeeeBroker) |
37 REGMAP_UUID("LIBID", LIBID_CeeeBrokerLib) | 37 REGMAP_UUID("LIBID", LIBID_CeeeBrokerLib) |
38 REGMAP_ENTRY("NAME", "Google CEEE Broker") | 38 REGMAP_RESOURCE("NAME", IDS_CEEE_BROKER_NAME) |
39 END_REGISTRY_MAP() | 39 END_REGISTRY_MAP() |
40 | 40 |
41 DECLARE_NOT_AGGREGATABLE(CeeeBroker) | 41 DECLARE_NOT_AGGREGATABLE(CeeeBroker) |
42 BEGIN_COM_MAP(CeeeBroker) | 42 BEGIN_COM_MAP(CeeeBroker) |
43 COM_INTERFACE_ENTRY(IExternalConnection) | 43 COM_INTERFACE_ENTRY(IExternalConnection) |
44 COM_INTERFACE_ENTRY(ICeeeBrokerRegistrar) | 44 COM_INTERFACE_ENTRY(ICeeeBrokerRegistrar) |
45 COM_INTERFACE_ENTRY(ICeeeBroker) | 45 COM_INTERFACE_ENTRY(ICeeeBroker) |
46 END_COM_MAP() | 46 END_COM_MAP() |
47 DECLARE_PROTECT_FINAL_CONSTRUCT() | 47 DECLARE_PROTECT_FINAL_CONSTRUCT() |
48 | 48 |
(...skipping 21 matching lines...) Expand all Loading... |
70 void OnReleaseConnection(bool last_unlock, bool last_unlock_releases); | 70 void OnReleaseConnection(bool last_unlock, bool last_unlock_releases); |
71 | 71 |
72 protected: | 72 protected: |
73 // A pointer to single instance objects, or seams set for unittests. | 73 // A pointer to single instance objects, or seams set for unittests. |
74 // TODO(mad@chromium.org): We should now use ExecutorsManager::test_instance_. | 74 // TODO(mad@chromium.org): We should now use ExecutorsManager::test_instance_. |
75 ExecutorsManager * executors_manager_; | 75 ExecutorsManager * executors_manager_; |
76 ApiDispatcher* api_dispatcher_; | 76 ApiDispatcher* api_dispatcher_; |
77 }; | 77 }; |
78 | 78 |
79 #endif // CEEE_IE_BROKER_BROKER_H_ | 79 #endif // CEEE_IE_BROKER_BROKER_H_ |
OLD | NEW |