| OLD | NEW | 
|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 | 9 | 
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
| 37   PepperFileSystemHost(RendererPpapiHost* host, | 37   PepperFileSystemHost(RendererPpapiHost* host, | 
| 38                        PP_Instance instance, | 38                        PP_Instance instance, | 
| 39                        PP_Resource resource, | 39                        PP_Resource resource, | 
| 40                        const GURL& root_url, | 40                        const GURL& root_url, | 
| 41                        PP_FileSystemType type); | 41                        PP_FileSystemType type); | 
| 42   virtual ~PepperFileSystemHost(); | 42   virtual ~PepperFileSystemHost(); | 
| 43 | 43 | 
| 44   // ppapi::host::ResourceHost override. | 44   // ppapi::host::ResourceHost override. | 
| 45   virtual int32_t OnResourceMessageReceived( | 45   virtual int32_t OnResourceMessageReceived( | 
| 46       const IPC::Message& msg, | 46       const IPC::Message& msg, | 
| 47       ppapi::host::HostMessageContext* context) OVERRIDE; | 47       ppapi::host::HostMessageContext* context) override; | 
| 48   virtual bool IsFileSystemHost() OVERRIDE; | 48   virtual bool IsFileSystemHost() override; | 
| 49 | 49 | 
| 50   // Supports FileRefs direct access on the host side. | 50   // Supports FileRefs direct access on the host side. | 
| 51   PP_FileSystemType GetType() const { return type_; } | 51   PP_FileSystemType GetType() const { return type_; } | 
| 52   bool IsOpened() const { return opened_; } | 52   bool IsOpened() const { return opened_; } | 
| 53   GURL GetRootUrl() const { return root_url_; } | 53   GURL GetRootUrl() const { return root_url_; } | 
| 54 | 54 | 
| 55  private: | 55  private: | 
| 56   // Callback for OpenFileSystem. | 56   // Callback for OpenFileSystem. | 
| 57   void DidOpenFileSystem(const std::string& name_unused, const GURL& root); | 57   void DidOpenFileSystem(const std::string& name_unused, const GURL& root); | 
| 58   void DidFailOpenFileSystem(base::File::Error error); | 58   void DidFailOpenFileSystem(base::File::Error error); | 
| (...skipping 14 matching lines...) Expand all  Loading... | 
| 73   bool called_open_;  // whether open has been called. | 73   bool called_open_;  // whether open has been called. | 
| 74 | 74 | 
| 75   base::WeakPtrFactory<PepperFileSystemHost> weak_factory_; | 75   base::WeakPtrFactory<PepperFileSystemHost> weak_factory_; | 
| 76 | 76 | 
| 77   DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost); | 77   DISALLOW_COPY_AND_ASSIGN(PepperFileSystemHost); | 
| 78 }; | 78 }; | 
| 79 | 79 | 
| 80 }  // namespace content | 80 }  // namespace content | 
| 81 | 81 | 
| 82 #endif  // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 82 #endif  // CONTENT_RENDERER_PEPPER_PEPPER_FILE_SYSTEM_HOST_H_ | 
| OLD | NEW | 
|---|