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

Side by Side Diff: components/drive/event_logger.h

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « components/drive/dummy_file_system.h ('k') | components/drive/fake_file_system.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_DRIVE_EVENT_LOGGER_H_ 5 #ifndef COMPONENTS_DRIVE_EVENT_LOGGER_H_
6 #define COMPONENTS_DRIVE_EVENT_LOGGER_H_ 6 #define COMPONENTS_DRIVE_EVENT_LOGGER_H_
7 7
8 #include <stddef.h>
9
8 #include <deque> 10 #include <deque>
9 #include <string> 11 #include <string>
10 #include <vector> 12 #include <vector>
11 13
12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
14 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h"
15 #include "base/synchronization/lock.h" 17 #include "base/synchronization/lock.h"
16 #include "base/time/time.h" 18 #include "base/time/time.h"
17 19
18 namespace drive { 20 namespace drive {
19 21
20 // The default history size used by EventLogger. 22 // The default history size used by EventLogger.
21 const int kDefaultHistorySize = 1000; 23 const int kDefaultHistorySize = 1000;
22 24
23 // EventLogger is used to collect and expose text messages for diagnosing 25 // EventLogger is used to collect and expose text messages for diagnosing
24 // behaviors of Google APIs stuff. For instance, the collected messages are 26 // behaviors of Google APIs stuff. For instance, the collected messages are
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 size_t history_size_; // guarded by lock_. 63 size_t history_size_; // guarded by lock_.
62 int next_event_id_; // guarded by lock_. 64 int next_event_id_; // guarded by lock_.
63 base::Lock lock_; 65 base::Lock lock_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(EventLogger); 67 DISALLOW_COPY_AND_ASSIGN(EventLogger);
66 }; 68 };
67 69
68 } // namespace drive 70 } // namespace drive
69 71
70 #endif // COMPONENTS_DRIVE_EVENT_LOGGER_H_ 72 #endif // COMPONENTS_DRIVE_EVENT_LOGGER_H_
OLDNEW
« no previous file with comments | « components/drive/dummy_file_system.h ('k') | components/drive/fake_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698