#ifndef CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGING_LAUNCH_FROM_NATIVE_H_
#define CHROME_BROWSER_EXTENSIONS_API_MESSAGING_NATIVE_MESSAGING_LAUNCH_FROM_NATIVE_H_
#include <string>
#include "base/time/time.h"
#include "extensions/common/extension_id.h"
class Profile;
namespace extensions {
bool ExtensionSupportsConnectionFromNativeApp(const ExtensionId& extension_id,
const std::string& host_id,
Profile* profile,
bool log_errors);
void LaunchNativeMessageHostFromNativeApp(const ExtensionId& extension_id,
const std::string& host_id,
const std::string& connection_id,
Profile* profile);
class ScopedAllowNativeAppConnectionForTest { … };
class ScopedNativeMessagingErrorTimeoutOverrideForTest { … };
}
#endif