OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 extension API contains system-wide preferences and functions that shall | 5 // This extension API contains system-wide preferences and functions that shall |
6 // be only available to component extensions. | 6 // be only available to component extensions. |
7 | 7 |
8 #ifndef CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ |
9 #define CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ |
10 | 10 |
11 #include "chrome/browser/extensions/extension_preference_api.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
12 | |
13 #include <string> | |
14 | |
15 namespace base { | |
16 class Value; | |
17 } | |
18 | 12 |
19 namespace extensions { | 13 namespace extensions { |
20 | 14 |
21 class GetIncognitoModeAvailabilityFunction : public SyncExtensionFunction { | 15 class GetIncognitoModeAvailabilityFunction : public SyncExtensionFunction { |
22 public: | 16 public: |
23 virtual ~GetIncognitoModeAvailabilityFunction(); | 17 virtual ~GetIncognitoModeAvailabilityFunction() {} |
24 virtual bool RunImpl() OVERRIDE; | 18 virtual bool RunImpl() OVERRIDE; |
25 DECLARE_EXTENSION_FUNCTION_NAME("systemPrivate.getIncognitoModeAvailability") | 19 DECLARE_EXTENSION_FUNCTION_NAME("systemPrivate.getIncognitoModeAvailability") |
26 }; | 20 }; |
27 | 21 |
| 22 // API function which returns the status of system update. |
| 23 class GetUpdateStatusFunction : public SyncExtensionFunction { |
| 24 public: |
| 25 virtual ~GetUpdateStatusFunction() {} |
| 26 virtual bool RunImpl() OVERRIDE; |
| 27 DECLARE_EXTENSION_FUNCTION_NAME("systemPrivate.getUpdateStatus") |
| 28 }; |
| 29 |
28 } // namespace extensions | 30 } // namespace extensions |
29 | 31 |
30 #endif // CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ | 32 #endif // CHROME_BROWSER_EXTENSIONS_SYSTEM_SYSTEM_API_H_ |
OLD | NEW |