Chromium Code Reviews| 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 1aba1c75a70a08b9e6ee504004dcebfcb7535b30..07fd84b70c038dc526d3c1e3b788f9a9ee2e6066 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/net/discovery_network_monitor.h" |
| #include "chrome/common/extensions/api/dial.h" |
| #include "components/keyed_service/core/refcounted_keyed_service.h" |
| #include "extensions/browser/api/async_api_function.h" |
| @@ -157,6 +158,25 @@ class DialFetchDeviceDescriptionFunction : public AsyncExtensionFunction { |
| DISALLOW_COPY_AND_ASSIGN(DialFetchDeviceDescriptionFunction); |
| }; |
| +class DialGetNetworkIdFunction : public AsyncExtensionFunction { |
|
imcheng
2017/03/14 22:45:34
Mark - I don't believe we need this anymore. The n
mark a. foltz
2017/03/18 19:58:21
It's up to you - if we add this, we could test it
btolsch
2017/04/03 10:16:35
I removee it since it sounds like it would only be
|
| + public: |
| + DialGetNetworkIdFunction(); |
| + |
| + protected: |
| + ~DialGetNetworkIdFunction() override; |
| + |
| + // AsyncExtensionFunction: |
| + bool RunAsync() override; |
| + |
| + private: |
| + DECLARE_EXTENSION_FUNCTION("dial.getNetworkId", DIAL_GETNETWORKID) |
| + |
| + void GetNetworkIdOnIOThread(); |
| + void NetworkIdCallback(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DialGetNetworkIdFunction); |
| +}; |
| + |
| } // namespace extensions |
| #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_API_H_ |