Pass the WebFrame to closeHelperPlugin().
[chromium-blink-merge.git] / apps / launcher.h
blob9412c11de7b7db9c16e707039dd71de0d154e621
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef APPS_LAUNCHER_H_
6 #define APPS_LAUNCHER_H_
8 #include <string>
10 class CommandLine;
11 class Profile;
13 namespace base {
14 class FilePath;
17 namespace extensions {
18 class Extension;
21 namespace apps {
23 // Launches the platform app |extension|. Creates appropriate launch data for
24 // the |command_line| fields present. |extension| and |profile| must not be
25 // NULL. A NULL |command_line| means there is no launch data. If non-empty,
26 // |current_directory| is used to expand any relative paths on the command line.
27 void LaunchPlatformAppWithCommandLine(Profile* profile,
28 const extensions::Extension* extension,
29 const CommandLine* command_line,
30 const base::FilePath& current_directory);
32 // Launches the platform app |extension| with the contents of |file_path|
33 // available through the launch data.
34 void LaunchPlatformAppWithPath(Profile* profile,
35 const extensions::Extension* extension,
36 const base::FilePath& file_path);
38 // Launches the platform app |extension| with no launch data.
39 void LaunchPlatformApp(Profile* profile,
40 const extensions::Extension* extension);
42 // Launches the platform app |extension| with the contents of |file_path|
43 // available through the launch data.
44 void LaunchPlatformAppWithFileHandler(Profile* profile,
45 const extensions::Extension* extension,
46 const std::string& handler_id,
47 const base::FilePath& file_path);
49 void RestartPlatformApp(Profile* profile,
50 const extensions::Extension* extension);
52 } // namespace apps
54 #endif // APPS_LAUNCHER_H_