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 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_ |
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/extensions/chrome_extension_function.h" | |
10 #include "chrome/common/extensions/api/first_run_private.h" | 9 #include "chrome/common/extensions/api/first_run_private.h" |
| 10 #include "extensions/browser/extension_function.h" |
11 | 11 |
12 class FirstRunPrivateGetLocalizedStringsFunction | 12 class FirstRunPrivateGetLocalizedStringsFunction |
13 : public ChromeSyncExtensionFunction { | 13 : public UIThreadExtensionFunction { |
14 public: | 14 public: |
15 DECLARE_EXTENSION_FUNCTION("firstRunPrivate.getLocalizedStrings", | 15 DECLARE_EXTENSION_FUNCTION("firstRunPrivate.getLocalizedStrings", |
16 FIRSTRUNPRIVATE_GETLOCALIZEDSTRINGS) | 16 FIRSTRUNPRIVATE_GETLOCALIZEDSTRINGS) |
17 | 17 |
18 protected: | 18 protected: |
19 ~FirstRunPrivateGetLocalizedStringsFunction() override {} | 19 ~FirstRunPrivateGetLocalizedStringsFunction() override {} |
20 | 20 |
21 // SyncExtensionFunction overrides. | 21 // ExtensionFunction: |
22 bool RunSync() override; | 22 ResponseAction Run() override; |
23 }; | 23 }; |
24 | 24 |
25 class FirstRunPrivateLaunchTutorialFunction | 25 class FirstRunPrivateLaunchTutorialFunction : public UIThreadExtensionFunction { |
26 : public ChromeSyncExtensionFunction { | |
27 public: | 26 public: |
28 DECLARE_EXTENSION_FUNCTION("firstRunPrivate.launchTutorial", | 27 DECLARE_EXTENSION_FUNCTION("firstRunPrivate.launchTutorial", |
29 FIRSTRUNPRIVATE_LAUNCHTUTORIAL) | 28 FIRSTRUNPRIVATE_LAUNCHTUTORIAL) |
30 | 29 |
31 protected: | 30 protected: |
32 ~FirstRunPrivateLaunchTutorialFunction() override {} | 31 ~FirstRunPrivateLaunchTutorialFunction() override {} |
33 | 32 |
34 // SyncExtensionFunction overrides. | 33 // ExtensionFunction: |
35 bool RunSync() override; | 34 ResponseAction Run() override; |
36 }; | 35 }; |
37 | 36 |
38 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_ | 37 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_ |
OLD | NEW |