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

Side by Side Diff: remoting/host/linux/audio_pipe_reader.h

Issue 1547473005: Switch to standard integer types in remoting/host/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « remoting/host/it2me_desktop_environment.cc ('k') | remoting/host/linux/audio_pipe_reader.cc » ('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 REMOTING_HOST_LINUX_AUDIO_PIPE_READER_H_ 5 #ifndef REMOTING_HOST_LINUX_AUDIO_PIPE_READER_H_
6 #define REMOTING_HOST_LINUX_AUDIO_PIPE_READER_H_ 6 #define REMOTING_HOST_LINUX_AUDIO_PIPE_READER_H_
7 7
8 #include <stdint.h>
9
8 #include "base/files/file.h" 10 #include "base/files/file.h"
9 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
10 #include "base/files/file_path_watcher.h" 12 #include "base/files/file_path_watcher.h"
13 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
12 #include "base/memory/ref_counted_memory.h" 15 #include "base/memory/ref_counted_memory.h"
13 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
14 #include "base/observer_list_threadsafe.h" 17 #include "base/observer_list_threadsafe.h"
15 #include "base/time/time.h" 18 #include "base/time/time.h"
16 #include "base/timer/timer.h" 19 #include "base/timer/timer.h"
17 #include "remoting/proto/audio.pb.h" 20 #include "remoting/proto/audio.pb.h"
18 21
19 namespace remoting { 22 namespace remoting {
20 23
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 90
88 // Period between pipe reads. 91 // Period between pipe reads.
89 base::TimeDelta capture_period_; 92 base::TimeDelta capture_period_;
90 93
91 // Time when capturing was started. 94 // Time when capturing was started.
92 base::TimeTicks started_time_; 95 base::TimeTicks started_time_;
93 96
94 // Stream position of the last capture in bytes with zero position 97 // Stream position of the last capture in bytes with zero position
95 // corresponding to |started_time_|. Must always be a multiple of the sample 98 // corresponding to |started_time_|. Must always be a multiple of the sample
96 // size. 99 // size.
97 int64 last_capture_position_; 100 int64_t last_capture_position_;
98 101
99 // Bytes left from the previous read. 102 // Bytes left from the previous read.
100 std::string left_over_bytes_; 103 std::string left_over_bytes_;
101 104
102 base::MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_; 105 base::MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_;
103 106
104 DISALLOW_COPY_AND_ASSIGN(AudioPipeReader); 107 DISALLOW_COPY_AND_ASSIGN(AudioPipeReader);
105 }; 108 };
106 109
107 // Destroys |audio_pipe_reader| on the audio thread. 110 // Destroys |audio_pipe_reader| on the audio thread.
108 struct AudioPipeReaderTraits { 111 struct AudioPipeReaderTraits {
109 static void Destruct(const AudioPipeReader* audio_pipe_reader); 112 static void Destruct(const AudioPipeReader* audio_pipe_reader);
110 }; 113 };
111 114
112 } // namespace remoting 115 } // namespace remoting
113 116
114 #endif // REMOTING_HOST_LINUX_AUDIO_PIPE_READER_H_ 117 #endif // REMOTING_HOST_LINUX_AUDIO_PIPE_READER_H_
OLDNEW
« no previous file with comments | « remoting/host/it2me_desktop_environment.cc ('k') | remoting/host/linux/audio_pipe_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698