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

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, 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
« 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 42fa26aba21fe135ca0e537540ed24f2078200c0..bf57f454aef6d7d125426d05bf86c542d9ac7c99 100644
--- a/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
+++ b/chrome/browser/extensions/api/gcd_private/gcd_private_api.h
@@ -37,6 +37,8 @@ class GcdPrivateAPI : public BrowserContextKeyedAPI,
// BrowserContextKeyedAPI implementation.
static BrowserContextKeyedAPIFactory<GcdPrivateAPI>* GetFactoryInstance();
+ bool QueryForDevices();
+
private:
friend class BrowserContextKeyedAPIFactory<GcdPrivateAPI>;
@@ -98,7 +100,7 @@ class GcdPrivateGetCloudDeviceListFunction
};
class GcdPrivateQueryForNewLocalDevicesFunction
- : public ChromeAsyncExtensionFunction {
+ : public ChromeSyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("gcdPrivate.queryForNewLocalDevices",
GCDPRIVATE_QUERYFORNEWLOCALDEVICES)
@@ -108,8 +110,8 @@ class GcdPrivateQueryForNewLocalDevicesFunction
protected:
virtual ~GcdPrivateQueryForNewLocalDevicesFunction();
- // AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ // SyncExtensionFunction overrides.
+ virtual bool RunSync() OVERRIDE;
};
class GcdPrivateStartSetupFunction : 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