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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_http.cc

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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
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 5
6 #include "nacl_mounts/mount_http.h" 6 #include "nacl_io/mount_http.h"
7 #include <assert.h> 7 #include <assert.h>
8 #include <ctype.h> 8 #include <ctype.h>
9 #include <errno.h> 9 #include <errno.h>
10 #include <fcntl.h> 10 #include <fcntl.h>
11 #include <ppapi/c/pp_errors.h> 11 #include <ppapi/c/pp_errors.h>
12 #include <stdio.h> 12 #include <stdio.h>
13 #include <string.h> 13 #include <string.h>
14 #include <sys/stat.h> 14 #include <sys/stat.h>
15 #include <sys/types.h> 15 #include <sys/types.h>
16 #include <vector> 16 #include <vector>
17 #include "nacl_mounts/mount_node_dir.h" 17 #include "nacl_io/mount_node_dir.h"
18 #include "nacl_mounts/osinttypes.h" 18 #include "nacl_io/osinttypes.h"
19 #include "utils/auto_lock.h" 19 #include "utils/auto_lock.h"
20 20
21 #if defined(WIN32) 21 #if defined(WIN32)
22 #define snprintf _snprintf 22 #define snprintf _snprintf
23 #endif 23 #endif
24 24
25 25
26 typedef std::vector<char *> StringList_t; 26 typedef std::vector<char *> StringList_t;
27 static size_t SplitString(char *str, const char *delim, StringList_t* list) { 27 static size_t SplitString(char *str, const char *delim, StringList_t* list) {
28 char *item = strtok(str, delim); 28 char *item = strtok(str, delim);
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 off_t len = manifiestNode->Read(0, text, manifiestNode->GetSize()); 676 off_t len = manifiestNode->Read(0, text, manifiestNode->GetSize());
677 manifiestNode->Release(); 677 manifiestNode->Release();
678 678
679 text[len] = 0; 679 text[len] = 0;
680 return text; 680 return text;
681 } 681 }
682 682
683 fprintf(stderr, "Could not open manifest: %s\n", manifestName.c_str()); 683 fprintf(stderr, "Could not open manifest: %s\n", manifestName.c_str());
684 return NULL; 684 return NULL;
685 } 685 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_http.h ('k') | native_client_sdk/src/libraries/nacl_io/mount_mem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698