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

Unified Diff: chrome/browser/extensions/api/gcd_private/gcd_private_api.h

Issue 1106183006: Added gcdPrivate.getDeviceInfo function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_establish
Patch Set: Mon Apr 27 22:56:49 PDT 2015 Created 5 years, 8 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/gcd_private/gcd_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/gcd_private/gcd_private_api.h
diff --git a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
index f29f357b68c75f7d6a40d29d0abaf1d5bc8ee6b2..856133a81d38de1b31fc8bf28cb510bf9fd97d1f 100644
--- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
+++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
@@ -123,6 +123,26 @@ class GcdPrivateGetPrefetchedWifiNameListFunction
bool RunSync() override;
};
+class GcdPrivateGetDeviceInfoFunction : public ChromeAsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.getDeviceInfo",
+ GCDPRIVATE_GETDEVICEINFO)
+
+ GcdPrivateGetDeviceInfoFunction();
+
+ protected:
+ ~GcdPrivateGetDeviceInfoFunction() override;
+
+ // AsyncExtensionFunction overrides.
+ bool RunAsync() override;
+
+ private:
+ void OnSessionInitialized(
+ int session_id,
+ api::gcd_private::Status status,
+ const base::DictionaryValue& info);
+};
+
class GcdPrivateCreateSessionFunction : public ChromeAsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("gcdPrivate.createSession",
@@ -140,7 +160,7 @@ class GcdPrivateCreateSessionFunction : public ChromeAsyncExtensionFunction {
void OnSessionInitialized(
int session_id,
api::gcd_private::Status status,
- const std::vector<api::gcd_private::PairingType>& pairing_types);
+ const base::DictionaryValue& info);
};
class GcdPrivateStartPairingFunction : public ChromeAsyncExtensionFunction {
« no previous file with comments | « no previous file | chrome/browser/extensions/api/gcd_private/gcd_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698