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

Unified Diff: chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.h

Issue 1240283002: Implementation of the device attributes API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension_api
Patch Set: Created 5 years, 5 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
Index: chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.h
diff --git a/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.h b/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce16ec84466937778dff1ff2eda41dbd29c91533
--- /dev/null
+++ b/chrome/browser/extensions/api/enterprise_device_attributes/enterprise_device_attributes_api.h
@@ -0,0 +1,29 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_DEVICE_ATTRIBUTES_ENTERPRISE_DEVICE_ATTRIBUTES_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_DEVICE_ATTRIBUTES_ENTERPRISE_DEVICE_ATTRIBUTES_API_H_
+
+#include "extensions/browser/extension_function.h"
+
+namespace extensions {
+
+class EnterpriseDeviceAttributesGetDirectoryDeviceIdFunction
+ : public AsyncExtensionFunction {
pneubeck (no reviews) 2015/07/23 12:53:22 i think you shouldn't inherit from that class anym
Polina Bondarenko 2015/07/24 16:47:58 Done.
+ public:
+ EnterpriseDeviceAttributesGetDirectoryDeviceIdFunction();
+
+ protected:
+ ~EnterpriseDeviceAttributesGetDirectoryDeviceIdFunction() override;
+
+ bool RunAsync() override;
+
+ private:
+ DECLARE_EXTENSION_FUNCTION("enterprise.deviceAttributes.getDirectoryDeviceId",
+ ENTERPRISE_DEVICEATTRIBUTES_GETDIRECTORYDEVICEID);
+};
+
+} // namespace extensions
+#endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_DEVICE_ATTRIBUTES_ENTERPRISE_DEVICE_ATTRIBUTES_API_H_
+

Powered by Google App Engine
This is Rietveld 408576698