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

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

Issue 15800004: [NaCl SDK] nacl_io: Added support for access() syscall. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixes, implement httpfs, and write tests. Created 7 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
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 #ifndef LIBRARIES_NACL_IO_MOUNT_HTTP_H_ 6 #ifndef LIBRARIES_NACL_IO_MOUNT_HTTP_H_
7 #define LIBRARIES_NACL_IO_MOUNT_HTTP_H_ 7 #define LIBRARIES_NACL_IO_MOUNT_HTTP_H_
8 8
9 #include <string> 9 #include <string>
10 #include "nacl_io/mount.h" 10 #include "nacl_io/mount.h"
11 #include "nacl_io/pepper_interface.h" 11 #include "nacl_io/pepper_interface.h"
12 12
13 class MountNode; 13 class MountNode;
14 class MountNodeDir; 14 class MountNodeDir;
15 class MountNodeHttp; 15 class MountNodeHttp;
16 class MountHttpMock; 16 class MountHttpMock;
17 17
18 std::string NormalizeHeaderKey(const std::string& s); 18 std::string NormalizeHeaderKey(const std::string& s);
19 19
20 class MountHttp : public Mount { 20 class MountHttp : public Mount {
21 public: 21 public:
22 typedef std::map<std::string, MountNode*> NodeMap_t; 22 typedef std::map<std::string, MountNode*> NodeMap_t;
23 23
24 virtual Error Access(const Path& path, int a_mode);
24 virtual Error Open(const Path& path, int mode, MountNode** out_node); 25 virtual Error Open(const Path& path, int mode, MountNode** out_node);
25 virtual Error Unlink(const Path& path); 26 virtual Error Unlink(const Path& path);
26 virtual Error Mkdir(const Path& path, int permissions); 27 virtual Error Mkdir(const Path& path, int permissions);
27 virtual Error Rmdir(const Path& path); 28 virtual Error Rmdir(const Path& path);
28 virtual Error Remove(const Path& path); 29 virtual Error Remove(const Path& path);
29 30
30 PP_Resource MakeUrlRequestInfo(const std::string& url, 31 PP_Resource MakeUrlRequestInfo(const std::string& url,
31 const char* method, 32 const char* method,
32 StringMap_t* additional_headers); 33 StringMap_t* additional_headers);
33 34
(...skipping 14 matching lines...) Expand all
48 bool allow_credentials_; 49 bool allow_credentials_;
49 bool cache_stat_; 50 bool cache_stat_;
50 bool cache_content_; 51 bool cache_content_;
51 52
52 friend class Mount; 53 friend class Mount;
53 friend class MountNodeHttp; 54 friend class MountNodeHttp;
54 friend class MountHttpMock; 55 friend class MountHttpMock;
55 }; 56 };
56 57
57 #endif // LIBRARIES_NACL_IO_MOUNT_HTTP_H_ 58 #endif // LIBRARIES_NACL_IO_MOUNT_HTTP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698