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

Unified Diff: chrome/browser/extensions/api/system_indicator/system_indicator_api.h

Issue 12618009: Move SystemIndicator parsing out of Extension class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_indicator/system_indicator_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/system_indicator/system_indicator_api.h
diff --git a/chrome/browser/extensions/api/system_indicator/system_indicator_api.h b/chrome/browser/extensions/api/system_indicator/system_indicator_api.h
index 10981f6375a40872cec70187d975b2de3e06265a..a890793bb06fce1bca5bc706812b62825df194b4 100644
--- a/chrome/browser/extensions/api/system_indicator/system_indicator_api.h
+++ b/chrome/browser/extensions/api/system_indicator/system_indicator_api.h
@@ -6,10 +6,33 @@
#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INDICATOR_SYSTEM_INDICATOR_API_H_
#include "chrome/browser/extensions/api/extension_action/extension_action_api.h"
+#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
#include "chrome/browser/extensions/extension_function.h"
+class Profile;
+
namespace extensions {
+class SystemIndicatorAPI : public ProfileKeyedAPI {
+ public:
+ explicit SystemIndicatorAPI(Profile* profile);
+ virtual ~SystemIndicatorAPI();
+
+ // ProfileKeyedAPI implementation.
+ static ProfileKeyedAPIFactory<SystemIndicatorAPI>* GetFactoryInstance();
+
+ private:
+ friend class ProfileKeyedAPIFactory<SystemIndicatorAPI>;
+
+ // ProfileKeyedAPI implementation.
+ static const char* service_name() {
+ return "SystemIndicatorAPI";
+ }
+ static const bool kServiceIsNULLWhileTesting = true;
+
+ DISALLOW_COPY_AND_ASSIGN(SystemIndicatorAPI);
+};
+
class SystemIndicatorSetIconFunction : public ExtensionActionSetIconFunction {
public:
DECLARE_EXTENSION_FUNCTION("systemIndicator.setIcon", SYSTEMINDICATOR_SETICON)
« no previous file with comments | « no previous file | chrome/browser/extensions/api/system_indicator/system_indicator_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698