#ifndef APPS_LAUNCHER_H_
#define APPS_LAUNCHER_H_
#include <memory>
#include <string>
#include <vector>
#include "extensions/common/api/app_runtime.h"
#include "extensions/common/constants.h"
class GURL;
namespace base {
class CommandLine;
class FilePath;
}
namespace content {
class BrowserContext;
}
namespace extensions {
class Extension;
namespace api {
namespace app_runtime {
struct ActionData;
}
}
}
namespace apps {
void LaunchPlatformAppWithCommandLine(content::BrowserContext* context,
const extensions::Extension* app,
const base::CommandLine& command_line,
const base::FilePath& current_directory,
extensions::AppLaunchSource source);
void LaunchPlatformAppWithCommandLineAndLaunchId(
content::BrowserContext* context,
const extensions::Extension* app,
const std::string& launch_id,
const base::CommandLine& command_line,
const base::FilePath& current_directory,
extensions::AppLaunchSource source);
void LaunchPlatformAppWithPath(content::BrowserContext* context,
const extensions::Extension* app,
const base::FilePath& file_path);
void LaunchPlatformAppWithFilePaths(
content::BrowserContext* context,
const extensions::Extension* app,
const std::vector<base::FilePath>& file_paths);
void LaunchPlatformAppWithAction(
content::BrowserContext* context,
const extensions::Extension* app,
extensions::api::app_runtime::ActionData action_data);
void LaunchPlatformApp(content::BrowserContext* context,
const extensions::Extension* app,
extensions::AppLaunchSource source);
void LaunchPlatformAppWithFileHandler(
content::BrowserContext* context,
const extensions::Extension* app,
const std::string& handler_id,
const std::vector<base::FilePath>& file_paths);
void LaunchPlatformAppWithUrl(content::BrowserContext* context,
const extensions::Extension* app,
const std::string& handler_id,
const GURL& url,
const GURL& referrer_url);
void RestartPlatformApp(content::BrowserContext* context,
const extensions::Extension* app);
}
#endif