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

Side by Side Diff: chrome/browser/extensions/system/system_api.h

Issue 8747003: Add private system extension API to get system update status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for the case with no update on non-ChromeOS platforms Created 9 years 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
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/system/system_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698