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

Side by Side Diff: voice_engine/statistics.h

Issue 3020473002: Remove voe::Statistics. (Closed)
Patch Set: rebase Created 3 years, 2 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
« no previous file with comments | « voice_engine/shared_data.cc ('k') | voice_engine/statistics.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « voice_engine/shared_data.cc ('k') | voice_engine/statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698