OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "net/tools/flip_server/mem_cache.h" | 5 #include "net/tools/flip_server/mem_cache.h" |
6 | 6 |
7 #include <dirent.h> | 7 #include <dirent.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 #include <sys/stat.h> | 11 #include <sys/stat.h> |
12 #include <sys/types.h> | 12 #include <sys/types.h> |
13 #include <unistd.h> | 13 #include <unistd.h> |
14 | 14 |
15 #include <deque> | 15 #include <deque> |
16 | 16 |
17 #include "base/string_piece.h" | 17 #include "base/strings/string_piece.h" |
18 #include "net/tools/dump_cache/url_to_filename_encoder.h" | 18 #include "net/tools/dump_cache/url_to_filename_encoder.h" |
19 #include "net/tools/dump_cache/url_utilities.h" | 19 #include "net/tools/dump_cache/url_utilities.h" |
20 #include "net/tools/flip_server/balsa_frame.h" | 20 #include "net/tools/flip_server/balsa_frame.h" |
21 #include "net/tools/flip_server/balsa_headers.h" | 21 #include "net/tools/flip_server/balsa_headers.h" |
22 | 22 |
23 // The directory where cache locates); | 23 // The directory where cache locates); |
24 std::string FLAGS_cache_base_dir = "."; | 24 std::string FLAGS_cache_base_dir = "."; |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 | 27 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 mci->file_data = GetFileData(filename); | 225 mci->file_data = GetFileData(filename); |
226 if (mci->file_data == NULL) { | 226 if (mci->file_data == NULL) { |
227 LOG(ERROR) << "Could not find file data for " << filename; | 227 LOG(ERROR) << "Could not find file data for " << filename; |
228 return false; | 228 return false; |
229 } | 229 } |
230 return true; | 230 return true; |
231 } | 231 } |
232 | 232 |
233 } // namespace net | 233 } // namespace net |
234 | 234 |
OLD | NEW |