OLD | NEW |
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 only provides getStrings() as the .cc file for it is big. | 5 // This file only provides getStrings() as the .cc file for it is big. |
6 | 6 |
7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_STRINGS_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_STRINGS_H_ |
8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_STRINGS_H_ | 8 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_STRINGS_H_ |
9 | 9 |
10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 // Implements the chrome.fileBrowserPrivate.getStrings method. | 14 // Implements the chrome.fileBrowserPrivate.getStrings method. |
15 // Used to get strings for the file manager from JavaScript. | 15 // Used to get strings for the file manager from JavaScript. |
16 class GetStringsFunction : public SyncExtensionFunction { | 16 class FileBrowserPrivateGetStringsFunction : public SyncExtensionFunction { |
17 public: | 17 public: |
18 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getStrings", | 18 DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.getStrings", |
19 FILEBROWSERPRIVATE_GETSTRINGS) | 19 FILEBROWSERPRIVATE_GETSTRINGS) |
20 | 20 |
21 GetStringsFunction(); | 21 FileBrowserPrivateGetStringsFunction(); |
22 | 22 |
23 protected: | 23 protected: |
24 virtual ~GetStringsFunction(); | 24 virtual ~FileBrowserPrivateGetStringsFunction(); |
25 | 25 |
26 // SyncExtensionFunction overrides. | 26 // SyncExtensionFunction overrides. |
27 virtual bool RunImpl() OVERRIDE; | 27 virtual bool RunImpl() OVERRIDE; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace extensions | 30 } // namespace extensions |
31 | 31 |
32 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_STRINGS_H
_ | 32 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_PRIVATE_API_STRINGS_H
_ |
OLD | NEW |