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

Side by Side Diff: net/disk_cache/simple/simple_index_file.h

Issue 1154283003: Change most uses of Pickle to base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « net/disk_cache/simple/simple_index.cc ('k') | net/disk_cache/simple/simple_index_file.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) 2013 The Chromium Authors. All rights reserved. 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 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 NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 base::Time cache_last_modified, 108 base::Time cache_last_modified,
109 const base::FilePath& cache_directory, 109 const base::FilePath& cache_directory,
110 const base::FilePath& index_file_path, 110 const base::FilePath& index_file_path,
111 SimpleIndexLoadResult* out_result); 111 SimpleIndexLoadResult* out_result);
112 112
113 // Load the index file from disk returning an EntrySet. 113 // Load the index file from disk returning an EntrySet.
114 static void SyncLoadFromDisk(const base::FilePath& index_filename, 114 static void SyncLoadFromDisk(const base::FilePath& index_filename,
115 base::Time* out_last_cache_seen_by_index, 115 base::Time* out_last_cache_seen_by_index,
116 SimpleIndexLoadResult* out_result); 116 SimpleIndexLoadResult* out_result);
117 117
118 // Returns a scoped_ptr for a newly allocated Pickle containing the serialized 118 // Returns a scoped_ptr for a newly allocated base::Pickle containing the
119 // serialized
119 // data to be written to a file. Note: the pickle is not in a consistent state 120 // data to be written to a file. Note: the pickle is not in a consistent state
120 // immediately after calling this menthod, one needs to call 121 // immediately after calling this menthod, one needs to call
121 // SerializeFinalData to make it ready to write to a file. 122 // SerializeFinalData to make it ready to write to a file.
122 static scoped_ptr<base::Pickle> Serialize( 123 static scoped_ptr<base::Pickle> Serialize(
123 const SimpleIndexFile::IndexMetadata& index_metadata, 124 const SimpleIndexFile::IndexMetadata& index_metadata,
124 const SimpleIndex::EntrySet& entries); 125 const SimpleIndex::EntrySet& entries);
125 126
126 // Appends cache modification time data to the serialized format. This is 127 // Appends cache modification time data to the serialized format. This is
127 // performed on a thread accessing the disk. It is not combined with the main 128 // performed on a thread accessing the disk. It is not combined with the main
128 // serialization path to avoid extra thread hops or copying the pickle to the 129 // serialization path to avoid extra thread hops or copying the pickle to the
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 static const char kIndexFileName[]; 183 static const char kIndexFileName[];
183 static const char kTempIndexFileName[]; 184 static const char kTempIndexFileName[];
184 185
185 DISALLOW_COPY_AND_ASSIGN(SimpleIndexFile); 186 DISALLOW_COPY_AND_ASSIGN(SimpleIndexFile);
186 }; 187 };
187 188
188 189
189 } // namespace disk_cache 190 } // namespace disk_cache
190 191
191 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_ 192 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_FILE_H_
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_index.cc ('k') | net/disk_cache/simple/simple_index_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698