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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_file_ref_host.h

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 22 matching lines...) Expand all
33 virtual int32_t Touch(ppapi::host::ReplyMessageContext context, 33 virtual int32_t Touch(ppapi::host::ReplyMessageContext context,
34 PP_Time last_accessed_time, 34 PP_Time last_accessed_time,
35 PP_Time last_modified_time) = 0; 35 PP_Time last_modified_time) = 0;
36 virtual int32_t Delete(ppapi::host::ReplyMessageContext context) = 0; 36 virtual int32_t Delete(ppapi::host::ReplyMessageContext context) = 0;
37 virtual int32_t Rename(ppapi::host::ReplyMessageContext context, 37 virtual int32_t Rename(ppapi::host::ReplyMessageContext context,
38 PepperFileRefHost* new_file_ref) = 0; 38 PepperFileRefHost* new_file_ref) = 0;
39 virtual int32_t Query(ppapi::host::ReplyMessageContext context) = 0; 39 virtual int32_t Query(ppapi::host::ReplyMessageContext context) = 0;
40 virtual int32_t ReadDirectoryEntries( 40 virtual int32_t ReadDirectoryEntries(
41 ppapi::host::ReplyMessageContext context) = 0; 41 ppapi::host::ReplyMessageContext context) = 0;
42 virtual int32_t GetAbsolutePath(ppapi::host::ReplyMessageContext context) = 0; 42 virtual int32_t GetAbsolutePath(ppapi::host::ReplyMessageContext context) = 0;
43 virtual fileapi::FileSystemURL GetFileSystemURL() const = 0; 43 virtual storage::FileSystemURL GetFileSystemURL() const = 0;
44 virtual base::FilePath GetExternalFilePath() const = 0; 44 virtual base::FilePath GetExternalFilePath() const = 0;
45 45
46 // Returns an error from the pp_errors.h enum. 46 // Returns an error from the pp_errors.h enum.
47 virtual int32_t CanRead() const = 0; 47 virtual int32_t CanRead() const = 0;
48 virtual int32_t CanWrite() const = 0; 48 virtual int32_t CanWrite() const = 0;
49 virtual int32_t CanCreate() const = 0; 49 virtual int32_t CanCreate() const = 0;
50 virtual int32_t CanReadWrite() const = 0; 50 virtual int32_t CanReadWrite() const = 0;
51 }; 51 };
52 52
53 class CONTENT_EXPORT PepperFileRefHost 53 class CONTENT_EXPORT PepperFileRefHost
(...skipping 14 matching lines...) Expand all
68 virtual ~PepperFileRefHost(); 68 virtual ~PepperFileRefHost();
69 69
70 // ResourceHost overrides. 70 // ResourceHost overrides.
71 virtual int32_t OnResourceMessageReceived( 71 virtual int32_t OnResourceMessageReceived(
72 const IPC::Message& msg, 72 const IPC::Message& msg,
73 ppapi::host::HostMessageContext* context) OVERRIDE; 73 ppapi::host::HostMessageContext* context) OVERRIDE;
74 virtual bool IsFileRefHost() OVERRIDE; 74 virtual bool IsFileRefHost() OVERRIDE;
75 75
76 // Required to support Rename(). 76 // Required to support Rename().
77 PP_FileSystemType GetFileSystemType() const; 77 PP_FileSystemType GetFileSystemType() const;
78 fileapi::FileSystemURL GetFileSystemURL() const; 78 storage::FileSystemURL GetFileSystemURL() const;
79 79
80 // Required to support FileIO. 80 // Required to support FileIO.
81 base::FilePath GetExternalFilePath() const; 81 base::FilePath GetExternalFilePath() const;
82 base::WeakPtr<PepperFileSystemBrowserHost> GetFileSystemHost() const; 82 base::WeakPtr<PepperFileSystemBrowserHost> GetFileSystemHost() const;
83 83
84 int32_t CanRead() const; 84 int32_t CanRead() const;
85 int32_t CanWrite() const; 85 int32_t CanWrite() const;
86 int32_t CanCreate() const; 86 int32_t CanCreate() const;
87 int32_t CanReadWrite() const; 87 int32_t CanReadWrite() const;
88 88
(...skipping 14 matching lines...) Expand all
103 scoped_ptr<PepperFileRefBackend> backend_; 103 scoped_ptr<PepperFileRefBackend> backend_;
104 base::WeakPtr<PepperFileSystemBrowserHost> file_system_host_; 104 base::WeakPtr<PepperFileSystemBrowserHost> file_system_host_;
105 PP_FileSystemType fs_type_; 105 PP_FileSystemType fs_type_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(PepperFileRefHost); 107 DISALLOW_COPY_AND_ASSIGN(PepperFileRefHost);
108 }; 108 };
109 109
110 } // namespace content 110 } // namespace content
111 111
112 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_ 112 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_FILE_REF_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698