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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.h

Issue 1026733003: Files.app: Add private API to check if PiexLoader is enabled or not. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Turn RunSync into Run. Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_misc.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 // This file provides miscellaneous API functions, which don't belong to 5 // This file provides miscellaneous API functions, which don't belong to
6 // other files. 6 // other files.
7 7
8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 8 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 9 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 protected: 175 protected:
176 ~FileManagerPrivateGetMimeTypeFunction() override; 176 ~FileManagerPrivateGetMimeTypeFunction() override;
177 177
178 // AsyncExtensionFunction overrides. 178 // AsyncExtensionFunction overrides.
179 bool RunAsync() override; 179 bool RunAsync() override;
180 180
181 void OnGetMimeType(const std::string& mimeType); 181 void OnGetMimeType(const std::string& mimeType);
182 }; 182 };
183 183
184 // Implements the chrome.fileManagerPrivate.isPiexLoaderEnabled method.
185 class FileManagerPrivateIsPiexLoaderEnabledFunction
186 : public UIThreadExtensionFunction {
187 public:
188 FileManagerPrivateIsPiexLoaderEnabledFunction() {}
189 DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.isPiexLoaderEnabled",
190 FILEMANAGERPRIVATE_ISPIEXLOADERENABLED)
191 protected:
192 ~FileManagerPrivateIsPiexLoaderEnabledFunction() override {}
193
194 private:
195 ResponseAction Run() override;
196 DISALLOW_COPY_AND_ASSIGN(FileManagerPrivateIsPiexLoaderEnabledFunction);
197 };
198
184 } // namespace extensions 199 } // namespace extensions
185 200
186 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_ 201 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_MISC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698