| 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 */ | |
| 5 | 4 |
| 6 #include "nacl_io/mount_http.h" | 5 #include "nacl_io/mount_http.h" |
| 7 | 6 |
| 8 #include <assert.h> | 7 #include <assert.h> |
| 9 #include <ctype.h> | 8 #include <ctype.h> |
| 10 #include <errno.h> | 9 #include <errno.h> |
| 11 #include <fcntl.h> | 10 #include <fcntl.h> |
| 12 #include <stdio.h> | 11 #include <stdio.h> |
| 13 #include <string.h> | 12 #include <string.h> |
| 14 #include <sys/stat.h> | 13 #include <sys/stat.h> |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 *out_manifest = text; | 395 *out_manifest = text; |
| 397 return 0; | 396 return 0; |
| 398 } | 397 } |
| 399 | 398 |
| 400 std::string MountHttp::MakeUrl(const Path& path) { | 399 std::string MountHttp::MakeUrl(const Path& path) { |
| 401 return url_root_ + | 400 return url_root_ + |
| 402 (path.IsAbsolute() ? path.Range(1, path.Size()) : path.Join()); | 401 (path.IsAbsolute() ? path.Range(1, path.Size()) : path.Join()); |
| 403 } | 402 } |
| 404 | 403 |
| 405 } // namespace nacl_io | 404 } // namespace nacl_io |
| OLD | NEW |