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

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

Issue 356613002: Add queryForNewLocalDevices to gcdPrivate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/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 9f92074d78e620dd16100e0bec67853665b9f86c..1b4aa17802172f16e70d15d2ae01b8aeceb8879a 100644
--- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
+++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
@@ -42,6 +42,8 @@ class GcdPrivateAPI : public BrowserContextKeyedAPI,
// BrowserContextKeyedAPI implementation.
static BrowserContextKeyedAPIFactory<GcdPrivateAPI>* GetFactoryInstance();
+ bool QueryForDevices();
+
private:
friend class BrowserContextKeyedAPIFactory<GcdPrivateAPI>;
@@ -114,6 +116,21 @@ class GcdPrivateGetCloudDeviceListFunction
scoped_ptr<local_discovery::GCDApiFlow> device_list_;
};
+class GcdPrivateQueryForNewLocalDevicesFunction
+ : public ChromeSyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("gcdPrivate.queryForNewLocalDevices",
+ FEEDBACKPRIVATE_GETSTRINGS)
+
+ GcdPrivateQueryForNewLocalDevicesFunction();
+
+ protected:
+ virtual ~GcdPrivateQueryForNewLocalDevicesFunction();
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunSync() OVERRIDE;
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_GCD_PRIVATE_GCD_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698