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

Side by Side Diff: components/rappor/bytevector.h

Issue 49753002: RAPPOR implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BrowserProcess member Created 7 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_RAPPOR_BYTEVECTOR_H_
6 #define CHROME_BROWSER_RAPPOR_BYTEVECTOR_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10 #include <vector>
11
12 // ByteVector is a class that extends a vector of one byte integers with
13 // methods for manipulating it's content as a set of binary bits.
14
15 namespace rappor {
16
17 class ByteVector : public std::vector<uint8_t> {
18 public:
19 explicit ByteVector(size_t bytes_size);
20 explicit ByteVector(const std::vector<uint8_t>& v);
21 ByteVector(const char* bytes, int bytes_size);
22
23 ByteVector operator&(ByteVector rhs) const;
jwd 2013/12/16 17:04:03 Operator overloading is frowned upon in the c++ go
Steven Holte 2013/12/16 23:02:16 Done.
24
25 ByteVector operator|(ByteVector rhs) const;
26
27 ByteVector operator~() const;
28 };
29
30 } // namespace rappor
31
32 #endif // CHROME_BROWSER_RAPPOR_BYTEVECTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698