| Index: chrome/browser/extensions/api/mdns/mdns_api.h
|
| diff --git a/chrome/browser/extensions/api/mdns/mdns_api.h b/chrome/browser/extensions/api/mdns/mdns_api.h
|
| index f232d3b07b95432a04137b46d5e01da57ec901cf..bfe45c95b938d2f181a0ab4b69fe5c0ccf5af9d9 100644
|
| --- a/chrome/browser/extensions/api/mdns/mdns_api.h
|
| +++ b/chrome/browser/extensions/api/mdns/mdns_api.h
|
| @@ -13,6 +13,7 @@
|
| #include "chrome/browser/extensions/api/mdns/dns_sd_registry.h"
|
| #include "extensions/browser/browser_context_keyed_api_factory.h"
|
| #include "extensions/browser/event_router.h"
|
| +#include "extensions/browser/extension_function.h"
|
|
|
| namespace content {
|
| class BrowserContext;
|
| @@ -78,6 +79,22 @@ class MDnsAPI : public BrowserContextKeyedAPI,
|
| DISALLOW_COPY_AND_ASSIGN(MDnsAPI);
|
| };
|
|
|
| +// Implementation of mdns.getMaxServiceInstancesPerEventFunction, which is a
|
| +// function for determining the maximum number of services that will be
|
| +// available in an mdns.onServiceList event.
|
| +class MdnsGetMaxServiceInstancesPerEventFunction :
|
| + public UIThreadExtensionFunction {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("mdns.getMaxServiceInstancesPerEvent",
|
| + MDNS_GET_MAX_SERVICE_INSTANCES_PER_EVENT);
|
| +
|
| + MdnsGetMaxServiceInstancesPerEventFunction() {}
|
| + ExtensionFunction::ResponseAction Run() override;
|
| +
|
| + protected:
|
| + ~MdnsGetMaxServiceInstancesPerEventFunction() override {}
|
| +};
|
| +
|
| } // namespace extensions
|
|
|
| #endif // CHROME_BROWSER_EXTENSIONS_API_MDNS_MDNS_API_H_
|
|
|