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

Unified Diff: chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h

Issue 22706006: Implementation of the DeviceInfo get API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For try runs Created 7 years, 4 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/signedin_devices/signedin_devices_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h
diff --git a/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h b/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h
index 7ebc64f26aae4e19ef4de676292ea68807fc85bf..eb04d3a8dd45158ac9de132e2b83b8226835f682 100644
--- a/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h
+++ b/chrome/browser/extensions/api/signedin_devices/signedin_devices_api.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/memory/scoped_vector.h"
+#include "chrome/browser/extensions/extension_function.h"
namespace browser_sync {
class DeviceInfo;
@@ -27,15 +28,24 @@ namespace extensions {
// filled with the list of devices associated with the account signed into this
// |profile|. This function needs the |extension_id| because the
// public device ids are set per extension.
-ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices(
+ScopedVector<browser_sync::DeviceInfo> GetAllSignedinDevices(
const std::string& extension_id,
Profile* profile);
-ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices(
+ScopedVector<browser_sync::DeviceInfo> GetAllSignedinDevices(
const std::string& extension_id,
ProfileSyncService* pss,
ExtensionPrefs* extension_prefs);
+class SignedinDevicesGetFunction : public SyncExtensionFunction {
+ protected:
+ virtual ~SignedinDevicesGetFunction() {}
+
+ // ExtensionFunction:
+ virtual bool RunImpl() OVERRIDE;
+ DECLARE_EXTENSION_FUNCTION("SignedinDevices.get", SIGNEDIN_DEVICES_GET)
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_SIGNEDIN_DEVICES_SIGNEDIN_DEVICES_API_H__
« no previous file with comments | « no previous file | chrome/browser/extensions/api/signedin_devices/signedin_devices_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698