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

Side by Side Diff: base/pickle.h

Issue 16667013: Use a direct include of strings headers in base/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « base/path_service_unittest.cc ('k') | base/pickle_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 (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
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__
OLDNEW
« no previous file with comments | « base/path_service_unittest.cc ('k') | base/pickle_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698