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

Side by Side Diff: base/trace_event/trace_log.h

Issue 1619363002: Add compile time checks against longs being used in IPC structs on 32 bit Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more per Dmitry Created 4 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 BASE_TRACE_EVENT_TRACE_LOG_H_ 5 #ifndef BASE_TRACE_EVENT_TRACE_LOG_H_
6 #define BASE_TRACE_EVENT_TRACE_LOG_H_ 6 #define BASE_TRACE_EVENT_TRACE_LOG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 class TraceBuffer; 33 class TraceBuffer;
34 class TraceBufferChunk; 34 class TraceBufferChunk;
35 class TraceEvent; 35 class TraceEvent;
36 class TraceEventMemoryOverhead; 36 class TraceEventMemoryOverhead;
37 class TraceSamplingThread; 37 class TraceSamplingThread;
38 38
39 struct BASE_EXPORT TraceLogStatus { 39 struct BASE_EXPORT TraceLogStatus {
40 TraceLogStatus(); 40 TraceLogStatus();
41 ~TraceLogStatus(); 41 ~TraceLogStatus();
42 size_t event_capacity; 42 uint32_t event_capacity;
43 size_t event_count; 43 uint32_t event_count;
44 }; 44 };
45 45
46 class BASE_EXPORT TraceLog : public MemoryDumpProvider { 46 class BASE_EXPORT TraceLog : public MemoryDumpProvider {
47 public: 47 public:
48 enum Mode { 48 enum Mode {
49 DISABLED = 0, 49 DISABLED = 0,
50 RECORDING_MODE, 50 RECORDING_MODE,
51 MONITORING_MODE, 51 MONITORING_MODE,
52 }; 52 };
53 53
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 subtle::AtomicWord generation_; 494 subtle::AtomicWord generation_;
495 bool use_worker_thread_; 495 bool use_worker_thread_;
496 496
497 DISALLOW_COPY_AND_ASSIGN(TraceLog); 497 DISALLOW_COPY_AND_ASSIGN(TraceLog);
498 }; 498 };
499 499
500 } // namespace trace_event 500 } // namespace trace_event
501 } // namespace base 501 } // namespace base
502 502
503 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_ 503 #endif // BASE_TRACE_EVENT_TRACE_LOG_H_
OLDNEW
« base/pickle.cc ('K') | « base/pickle_unittest.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698