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

Side by Side Diff: chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h

Issue 335753004: [fsp] Cleanup handling errors for operation requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_PROV IDER_API_H_
7 7
8 #include "chrome/browser/chromeos/extensions/file_system_provider/provider_funct ion.h" 8 #include "chrome/browser/chromeos/extensions/file_system_provider/provider_funct ion.h"
9 #include "chrome/browser/extensions/chrome_extension_function.h" 9 #include "chrome/browser/extensions/chrome_extension_function.h"
10 10
(...skipping 24 matching lines...) Expand all
35 public: 35 public:
36 DECLARE_EXTENSION_FUNCTION( 36 DECLARE_EXTENSION_FUNCTION(
37 "fileSystemProviderInternal.unmountRequestedSuccess", 37 "fileSystemProviderInternal.unmountRequestedSuccess",
38 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) 38 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS)
39 39
40 protected: 40 protected:
41 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {} 41 virtual ~FileSystemProviderInternalUnmountRequestedSuccessFunction() {}
42 virtual bool RunWhenValid() OVERRIDE; 42 virtual bool RunWhenValid() OVERRIDE;
43 }; 43 };
44 44
45 class FileSystemProviderInternalUnmountRequestedErrorFunction
46 : public FileSystemProviderInternalFunction {
47 public:
48 DECLARE_EXTENSION_FUNCTION(
49 "fileSystemProviderInternal.unmountRequestedError",
50 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDERROR)
51
52 protected:
53 virtual ~FileSystemProviderInternalUnmountRequestedErrorFunction() {}
54 virtual bool RunWhenValid() OVERRIDE;
55 };
56
57 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction 45 class FileSystemProviderInternalGetMetadataRequestedSuccessFunction
58 : public FileSystemProviderInternalFunction { 46 : public FileSystemProviderInternalFunction {
59 public: 47 public:
60 DECLARE_EXTENSION_FUNCTION( 48 DECLARE_EXTENSION_FUNCTION(
61 "fileSystemProviderInternal.getMetadataRequestedSuccess", 49 "fileSystemProviderInternal.getMetadataRequestedSuccess",
62 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS) 50 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDSUCCESS)
63 51
64 protected: 52 protected:
65 virtual ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() {} 53 virtual ~FileSystemProviderInternalGetMetadataRequestedSuccessFunction() {}
66 virtual bool RunWhenValid() OVERRIDE; 54 virtual bool RunWhenValid() OVERRIDE;
67 }; 55 };
68 56
69 class FileSystemProviderInternalGetMetadataRequestedErrorFunction
70 : public FileSystemProviderInternalFunction {
71 public:
72 DECLARE_EXTENSION_FUNCTION(
73 "fileSystemProviderInternal.getMetadataRequestedError",
74 FILESYSTEMPROVIDERINTERNAL_GETMETADATAREQUESTEDERROR)
75
76 protected:
77 virtual ~FileSystemProviderInternalGetMetadataRequestedErrorFunction() {}
78 virtual bool RunWhenValid() OVERRIDE;
79 };
80
81 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction 57 class FileSystemProviderInternalReadDirectoryRequestedSuccessFunction
82 : public FileSystemProviderInternalFunction { 58 : public FileSystemProviderInternalFunction {
83 public: 59 public:
84 DECLARE_EXTENSION_FUNCTION( 60 DECLARE_EXTENSION_FUNCTION(
85 "fileSystemProviderInternal.readDirectoryRequestedSuccess", 61 "fileSystemProviderInternal.readDirectoryRequestedSuccess",
86 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS) 62 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDSUCCESS)
87 63
88 protected: 64 protected:
89 virtual ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() {} 65 virtual ~FileSystemProviderInternalReadDirectoryRequestedSuccessFunction() {}
90 virtual bool RunWhenValid() OVERRIDE; 66 virtual bool RunWhenValid() OVERRIDE;
91 }; 67 };
92 68
93 class FileSystemProviderInternalReadDirectoryRequestedErrorFunction
94 : public FileSystemProviderInternalFunction {
95 public:
96 DECLARE_EXTENSION_FUNCTION(
97 "fileSystemProviderInternal.readDirectoryRequestedError",
98 FILESYSTEMPROVIDERINTERNAL_READDIRECTORYREQUESTEDERROR)
99
100 protected:
101 virtual ~FileSystemProviderInternalReadDirectoryRequestedErrorFunction() {}
102 virtual bool RunWhenValid() OVERRIDE;
103 };
104
105 class FileSystemProviderInternalOpenFileRequestedSuccessFunction 69 class FileSystemProviderInternalOpenFileRequestedSuccessFunction
106 : public FileSystemProviderInternalFunction { 70 : public FileSystemProviderInternalFunction {
107 public: 71 public:
108 DECLARE_EXTENSION_FUNCTION( 72 DECLARE_EXTENSION_FUNCTION(
109 "fileSystemProviderInternal.openFileRequestedSuccess", 73 "fileSystemProviderInternal.openFileRequestedSuccess",
110 FILESYSTEMPROVIDERINTERNAL_OPENFILEREQUESTEDSUCCESS) 74 FILESYSTEMPROVIDERINTERNAL_OPENFILEREQUESTEDSUCCESS)
111 75
112 protected: 76 protected:
113 virtual ~FileSystemProviderInternalOpenFileRequestedSuccessFunction() {} 77 virtual ~FileSystemProviderInternalOpenFileRequestedSuccessFunction() {}
114 virtual bool RunWhenValid() OVERRIDE; 78 virtual bool RunWhenValid() OVERRIDE;
115 }; 79 };
116 80
117 class FileSystemProviderInternalOpenFileRequestedErrorFunction
118 : public FileSystemProviderInternalFunction {
119 public:
120 DECLARE_EXTENSION_FUNCTION(
121 "fileSystemProviderInternal.openFileRequestedError",
122 FILESYSTEMPROVIDERINTERNAL_OPENFILEREQUESTEDERROR)
123
124 protected:
125 virtual ~FileSystemProviderInternalOpenFileRequestedErrorFunction() {}
126 virtual bool RunWhenValid() OVERRIDE;
127 };
128
129 class FileSystemProviderInternalCloseFileRequestedSuccessFunction 81 class FileSystemProviderInternalCloseFileRequestedSuccessFunction
130 : public FileSystemProviderInternalFunction { 82 : public FileSystemProviderInternalFunction {
131 public: 83 public:
132 DECLARE_EXTENSION_FUNCTION( 84 DECLARE_EXTENSION_FUNCTION(
133 "fileSystemProviderInternal.closeFileRequestedSuccess", 85 "fileSystemProviderInternal.closeFileRequestedSuccess",
134 FILESYSTEMPROVIDERINTERNAL_CLOSEFILEREQUESTEDSUCCESS) 86 FILESYSTEMPROVIDERINTERNAL_CLOSEFILEREQUESTEDSUCCESS)
135 87
136 protected: 88 protected:
137 virtual ~FileSystemProviderInternalCloseFileRequestedSuccessFunction() {} 89 virtual ~FileSystemProviderInternalCloseFileRequestedSuccessFunction() {}
138 virtual bool RunWhenValid() OVERRIDE; 90 virtual bool RunWhenValid() OVERRIDE;
139 }; 91 };
140 92
141 class FileSystemProviderInternalCloseFileRequestedErrorFunction
142 : public FileSystemProviderInternalFunction {
143 public:
144 DECLARE_EXTENSION_FUNCTION(
145 "fileSystemProviderInternal.closeFileRequestedError",
146 FILESYSTEMPROVIDERINTERNAL_CLOSEFILEREQUESTEDERROR)
147
148 protected:
149 virtual ~FileSystemProviderInternalCloseFileRequestedErrorFunction() {}
150 virtual bool RunWhenValid() OVERRIDE;
151 };
152
153 class FileSystemProviderInternalReadFileRequestedSuccessFunction 93 class FileSystemProviderInternalReadFileRequestedSuccessFunction
154 : public FileSystemProviderInternalFunction { 94 : public FileSystemProviderInternalFunction {
155 public: 95 public:
156 DECLARE_EXTENSION_FUNCTION( 96 DECLARE_EXTENSION_FUNCTION(
157 "fileSystemProviderInternal.readFileRequestedSuccess", 97 "fileSystemProviderInternal.readFileRequestedSuccess",
158 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDSUCCESS) 98 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDSUCCESS)
159 99
160 protected: 100 protected:
161 virtual ~FileSystemProviderInternalReadFileRequestedSuccessFunction() {} 101 virtual ~FileSystemProviderInternalReadFileRequestedSuccessFunction() {}
162 virtual bool RunWhenValid() OVERRIDE; 102 virtual bool RunWhenValid() OVERRIDE;
163 }; 103 };
164 104
165 class FileSystemProviderInternalReadFileRequestedErrorFunction 105 class FileSystemProviderInternalOperationRequestedErrorFunction
166 : public FileSystemProviderInternalFunction { 106 : public FileSystemProviderInternalFunction {
167 public: 107 public:
168 DECLARE_EXTENSION_FUNCTION( 108 DECLARE_EXTENSION_FUNCTION(
169 "fileSystemProviderInternal.readFileRequestedError", 109 "fileSystemProviderInternal.operationRequestedError",
170 FILESYSTEMPROVIDERINTERNAL_READFILEREQUESTEDERROR) 110 FILESYSTEMPROVIDERINTERNAL_OPERATIONREQUESTEDERROR)
171 111
172 protected: 112 protected:
173 virtual ~FileSystemProviderInternalReadFileRequestedErrorFunction() {} 113 virtual ~FileSystemProviderInternalOperationRequestedErrorFunction() {}
174 virtual bool RunWhenValid() OVERRIDE; 114 virtual bool RunWhenValid() OVERRIDE;
175 }; 115 };
176 116
177 } // namespace extensions 117 } // namespace extensions
178 118
179 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P ROVIDER_API_H_ 119 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_SYSTEM_PROVIDER_FILE_SYSTEM_P ROVIDER_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698