OLD | NEW |
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 BASE_PICKLE_H__ | 5 #ifndef BASE_PICKLE_H__ |
6 #define BASE_PICKLE_H__ | 6 #define BASE_PICKLE_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/string16.h" | 15 #include "base/strings/string16.h" |
16 | 16 |
17 class Pickle; | 17 class Pickle; |
18 | 18 |
19 // PickleIterator reads data from a Pickle. The Pickle object must remain valid | 19 // PickleIterator reads data from a Pickle. The Pickle object must remain valid |
20 // while the PickleIterator object is in use. | 20 // while the PickleIterator object is in use. |
21 class BASE_EXPORT PickleIterator { | 21 class BASE_EXPORT PickleIterator { |
22 public: | 22 public: |
23 PickleIterator() : read_ptr_(NULL), read_end_ptr_(NULL) {} | 23 PickleIterator() : read_ptr_(NULL), read_end_ptr_(NULL) {} |
24 explicit PickleIterator(const Pickle& pickle); | 24 explicit PickleIterator(const Pickle& pickle); |
25 | 25 |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // Allocation size of payload (or -1 if allocation is const). | 338 // Allocation size of payload (or -1 if allocation is const). |
339 size_t capacity_; | 339 size_t capacity_; |
340 size_t variable_buffer_offset_; // IF non-zero, then offset to a buffer. | 340 size_t variable_buffer_offset_; // IF non-zero, then offset to a buffer. |
341 | 341 |
342 FRIEND_TEST_ALL_PREFIXES(PickleTest, Resize); | 342 FRIEND_TEST_ALL_PREFIXES(PickleTest, Resize); |
343 FRIEND_TEST_ALL_PREFIXES(PickleTest, FindNext); | 343 FRIEND_TEST_ALL_PREFIXES(PickleTest, FindNext); |
344 FRIEND_TEST_ALL_PREFIXES(PickleTest, FindNextWithIncompleteHeader); | 344 FRIEND_TEST_ALL_PREFIXES(PickleTest, FindNextWithIncompleteHeader); |
345 }; | 345 }; |
346 | 346 |
347 #endif // BASE_PICKLE_H__ | 347 #endif // BASE_PICKLE_H__ |
OLD | NEW |