| OLD | NEW |
| 1 import "oaidl.idl"; | 1 import "oaidl.idl"; |
| 2 import "ocidl.idl"; | 2 import "ocidl.idl"; |
| 3 | 3 |
| 4 [ | 4 [ |
| 5 uuid (931C5D3F-A6D7-411B-98ED-789FC9291302), | 5 uuid (931C5D3F-A6D7-411B-98ED-789FC9291302), |
| 6 // TODO(vitalybuka@google.com): decide if we need meaningful version. | 6 // TODO(vitalybuka@google.com): decide if we need meaningful version. |
| 7 version(1.1), | 7 version(1.1), |
| 8 pointer_default(unique), | 8 pointer_default(unique), |
| 9 ] | 9 ] |
| 10 interface CeeeBroker { | 10 interface CeeeBroker { |
| 11 | 11 |
| 12 // Context handle to allow server maintain number of active clients. | 12 // Context handle to allow server maintain number of active clients. |
| 13 typedef [context_handle] void* BrokerContextHandle; | 13 typedef [context_handle] void* BrokerContextHandle; |
| 14 | 14 |
| 15 // @name Implementation specific calls. | 15 // @name Implementation specific calls. |
| 16 // @{ | 16 // @{ |
| 17 // Returns context handle for new client. | 17 // Returns context handle for new client. |
| 18 BrokerContextHandle Connect( | 18 BrokerContextHandle Connect( |
| 19 [in] handle_t binding_handle); | 19 [in] handle_t binding_handle); |
| 20 | 20 |
| 21 // Release context handle. | 21 // Release context handle. |
| 22 void Disconnect( | 22 void Disconnect( |
| 23 [in] handle_t binding_handle, | 23 [in] handle_t binding_handle, |
| 24 [in, out] BrokerContextHandle* context); | 24 [in, out] BrokerContextHandle* context); |
| 25 // @} | 25 // @} |
| 26 | 26 |
| 27 // @name Remote calls. | 27 // @name Remote calls. |
| 28 // @{ | 28 // @{ |
| 29 // Fires event to broker. | 29 // Fires event to broker. |
| 30 // @param context is required to avoid execution by wrong broker instance. |
| 30 void FireEvent( | 31 void FireEvent( |
| 31 [in] handle_t binding_handle, | 32 [in] handle_t binding_handle, |
| 33 [in] BrokerContextHandle context, |
| 32 [in, string] const char* event_name, | 34 [in, string] const char* event_name, |
| 33 [in, string] const char* event_args); | 35 [in, string] const char* event_args); |
| 34 | 36 |
| 35 void SendUmaHistogramTimes( | 37 void SendUmaHistogramTimes( |
| 36 [in] handle_t binding_handle, | 38 [in] handle_t binding_handle, |
| 37 [in, string] const char* name, | 39 [in, string] const char* name, |
| 38 [in] int sample); | 40 [in] int sample); |
| 39 | 41 |
| 40 void SendUmaHistogramData( | 42 void SendUmaHistogramData( |
| 41 [in] handle_t binding_handle, | 43 [in] handle_t binding_handle, |
| 42 [in, string] const char* name, | 44 [in, string] const char* name, |
| 43 [in] int sample, | 45 [in] int sample, |
| 44 [in] int min, | 46 [in] int min, |
| 45 [in] int max, | 47 [in] int max, |
| 46 [in] int bucket_count); | 48 [in] int bucket_count); |
| 47 // @} | 49 // @} |
| 48 } | 50 } |
| 49 | 51 |
| 50 // This dummy library statement enforces the creation of a history_indexer.tlb. | 52 // This dummy library statement enforces the creation of a history_indexer.tlb. |
| 51 // This is necessary since MSVC assumes a .idl always creates a .tlb. Otherwise, | 53 // This is necessary since MSVC assumes a .idl always creates a .tlb. Otherwise, |
| 52 // this .idl is always recompiled, giving many engs a headache. | 54 // this .idl is always recompiled, giving many engs a headache. |
| 53 [ | 55 [ |
| 54 uuid(B696C552-D640-4756-BE75-B86BE2AEB6C7), | 56 uuid(B696C552-D640-4756-BE75-B86BE2AEB6C7), |
| 55 helpstring("Dummy library") | 57 helpstring("Dummy library") |
| 56 ] | 58 ] |
| 57 library broker_rcp_lib | 59 library broker_rcp_lib |
| 58 { | 60 { |
| 59 }; | 61 }; |
| OLD | NEW |