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

Side by Side Diff: media/base/audio_hash.h

Issue 14272007: Update the remaining include paths of base/string_piece.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « jingle/notifier/base/xmpp_connection.cc ('k') | media/base/ranges_unittest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_BASE_AUDIO_HASH_H_ 5 #ifndef MEDIA_BASE_AUDIO_HASH_H_
6 #define MEDIA_BASE_AUDIO_HASH_H_ 6 #define MEDIA_BASE_AUDIO_HASH_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/string_piece.h" 11 #include "base/strings/string_piece.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 class AudioBus; 16 class AudioBus;
17 17
18 // Computes a running hash for a series of AudioBus objects. The hash is the 18 // Computes a running hash for a series of AudioBus objects. The hash is the
19 // sum of each sample bucketed based on the frame index, channel number, and 19 // sum of each sample bucketed based on the frame index, channel number, and
20 // current hash count. The hash was designed with two properties in mind: 20 // current hash count. The hash was designed with two properties in mind:
21 // 21 //
(...skipping 28 matching lines...) Expand all
50 // The total number of samples processed per channel. Uses a uint32 instead 50 // The total number of samples processed per channel. Uses a uint32 instead
51 // of size_t so overflows on 64-bit and 32-bit machines are equivalent. 51 // of size_t so overflows on 64-bit and 32-bit machines are equivalent.
52 uint32 sample_count_; 52 uint32 sample_count_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(AudioHash); 54 DISALLOW_COPY_AND_ASSIGN(AudioHash);
55 }; 55 };
56 56
57 } // namespace media 57 } // namespace media
58 58
59 #endif // MEDIA_BASE_AUDIO_HASH_H_ 59 #endif // MEDIA_BASE_AUDIO_HASH_H_
OLDNEW
« no previous file with comments | « jingle/notifier/base/xmpp_connection.cc ('k') | media/base/ranges_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698