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

Unified Diff: chrome/browser/extensions/api/dial/dial_api.h

Issue 2602593002: [chrome.dial] [WIP] Adds an API to get the active network ID. (Closed)
Patch Set: Outline API Created 4 years 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 | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/api/dial/dial_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/dial/dial_api.h
diff --git a/chrome/browser/extensions/api/dial/dial_api.h b/chrome/browser/extensions/api/dial/dial_api.h
index c9ba27a5081a534bdead0d5e1d25316cab6e3f6e..b6f168e1b9b73bf1eb53eb582cff3db79bff3fc3 100644
--- a/chrome/browser/extensions/api/dial/dial_api.h
+++ b/chrome/browser/extensions/api/dial/dial_api.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "chrome/browser/extensions/api/dial/dial_device_data.h"
#include "chrome/browser/extensions/api/dial/dial_registry.h"
+#include "chrome/browser/extensions/api/dial/discovery_network_monitor.h"
#include "components/keyed_service/core/refcounted_keyed_service.h"
#include "extensions/browser/api/async_api_function.h"
#include "extensions/browser/event_router.h"
@@ -100,6 +101,24 @@ class DialDiscoverNowFunction : public AsyncApiFunction {
DISALLOW_COPY_AND_ASSIGN(DialDiscoverNowFunction);
};
+class DialGetNetworkIdFunction : public AsyncApiFunction {
+ public:
+ DialGetNetworkIdFunction() = default;
+
+ protected:
+ ~DialGetNetworkIdFunction() override = default;
+
+ // AsyncApiFunction:
+ bool Prepare() override;
+ void Work() override;
+ bool Respond() override;
+
+ private:
+ DECLARE_EXTENSION_FUNCTION("dial.getNetworkId", DIAL_GETNETWORKID);
+
+ DISALLOW_COPY_AND_ASSIGN(DialGetNetworkIdFunction);
+};
+
} // namespace api
} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/api/dial/dial_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698