Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / native_client_sdk / src / libraries / nacl_io / httpfs / http_fs.h
index 84171ba..b481cc4 100644 (file)
@@ -18,8 +18,8 @@ class HttpFs : public Filesystem {
  public:
   typedef std::map<std::string, ScopedNode> NodeMap_t;
 
-  virtual Error Access(const Path& path, int a_mode);
-  virtual Error Open(const Path& path, int mode, ScopedNode* out_node);
+  virtual Error OpenWithMode(const Path& path, int open_flags, mode_t mode,
+                             ScopedNode* out_node);
   virtual Error Unlink(const Path& path);
   virtual Error Mkdir(const Path& path, int permissions);
   virtual Error Rmdir(const Path& path);
@@ -35,6 +35,7 @@ class HttpFs : public Filesystem {
 
   virtual Error Init(const FsInitArgs& args);
   virtual void Destroy();
+  ScopedNode FindExistingNode(const Path& path);
   Error FindOrCreateDir(const Path& path, ScopedNode* out_node);
   Error LoadManifest(const std::string& path, char** out_manifest);
   Error ParseManifest(const char* text);
@@ -42,6 +43,7 @@ class HttpFs : public Filesystem {
   NodeMap_t* GetNodeCacheForTesting() { return &node_cache_; }
 
  private:
+
   // Gets the URL to fetch for |path|.
   // |path| is relative to the mount point for the HTTP filesystem.
   std::string MakeUrl(const Path& path);
@@ -53,6 +55,7 @@ class HttpFs : public Filesystem {
   bool allow_credentials_;
   bool cache_stat_;
   bool cache_content_;
+  bool is_blob_url_;
 
   friend class TypedFsFactory<HttpFs>;
   friend class HttpFsNode;