| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 | 391 |
| 393 text[len] = 0; | 392 text[len] = 0; |
| 394 *out_manifest = text; | 393 *out_manifest = text; |
| 395 return 0; | 394 return 0; |
| 396 } | 395 } |
| 397 | 396 |
| 398 std::string MountHttp::MakeUrl(const Path& path) { | 397 std::string MountHttp::MakeUrl(const Path& path) { |
| 399 return url_root_ + | 398 return url_root_ + |
| 400 (path.IsAbsolute() ? path.Range(1, path.Size()) : path.Join()); | 399 (path.IsAbsolute() ? path.Range(1, path.Size()) : path.Join()); |
| 401 } | 400 } |
| OLD | NEW |