| OLD | NEW | 
 | (Empty) | 
|   1 /* |  | 
|   2  *  Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |  | 
|   3  * |  | 
|   4  *  Use of this source code is governed by a BSD-style license |  | 
|   5  *  that can be found in the LICENSE file in the root of the source |  | 
|   6  *  tree. An additional intellectual property rights grant can be found |  | 
|   7  *  in the file PATENTS.  All contributing project authors may |  | 
|   8  *  be found in the AUTHORS file in the root of the source tree. |  | 
|   9  */ |  | 
|  10  |  | 
|  11 #ifndef VOICE_ENGINE_STATISTICS_H_ |  | 
|  12 #define VOICE_ENGINE_STATISTICS_H_ |  | 
|  13  |  | 
|  14 #include "common_types.h"  // NOLINT(build/include) |  | 
|  15 #include "rtc_base/criticalsection.h" |  | 
|  16 #include "typedefs.h"  // NOLINT(build/include) |  | 
|  17 #include "voice_engine/include/voe_errors.h" |  | 
|  18 #include "voice_engine/voice_engine_defines.h" |  | 
|  19  |  | 
|  20 namespace webrtc { |  | 
|  21 namespace voe { |  | 
|  22  |  | 
|  23 class Statistics |  | 
|  24 { |  | 
|  25  public: |  | 
|  26     enum {KTraceMaxMessageSize = 256}; |  | 
|  27  public: |  | 
|  28     Statistics(uint32_t instanceId); |  | 
|  29     ~Statistics(); |  | 
|  30  |  | 
|  31     int32_t SetInitialized(); |  | 
|  32     int32_t SetUnInitialized(); |  | 
|  33     bool Initialized() const; |  | 
|  34     int32_t SetLastError(int32_t error) const; |  | 
|  35     int32_t SetLastError(int32_t error, TraceLevel level) const; |  | 
|  36     int32_t SetLastError(int32_t error, |  | 
|  37                          TraceLevel level, |  | 
|  38                          const char* msg) const; |  | 
|  39  |  | 
|  40  private: |  | 
|  41     rtc::CriticalSection lock_; |  | 
|  42     const uint32_t _instanceId; |  | 
|  43     mutable int32_t _lastError; |  | 
|  44     bool _isInitialized; |  | 
|  45 }; |  | 
|  46  |  | 
|  47 }  // namespace voe |  | 
|  48  |  | 
|  49 }  // namespace webrtc |  | 
|  50  |  | 
|  51 #endif // VOICE_ENGINE_STATISTICS_H_ |  | 
| OLD | NEW |