| 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_
|
|
|