Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_ |
| 7 | 7 |
| 8 class CommandLine; | 8 class CommandLine; |
| 9 class FilePath; | 9 class FilePath; |
| 10 class Profile; | 10 class Profile; |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class WebContents; | 13 class WebContents; |
| 14 class WebIntentsDispatcher; | 14 class WebIntentsDispatcher; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 class Extension; | 19 class Extension; |
| 20 | 20 |
| 21 // Launches the platform app |extension|. Creates appropriate launch data for | 21 // Launches the platform app |extension|. Creates appropriate launch data for |
| 22 // the |command_line| fields present. |extension| and |profile| must not be | 22 // the |command_line| fields present. |extension| and |profile| must not be |
| 23 // NULL. A NULL |command_line| means there is no launch data. If non-empty, | 23 // NULL. A NULL |command_line| means there is no launch data. If non-empty, |
| 24 // |current_directory| is used to expand any relative paths on the command line. | 24 // |current_directory| is used to expand any relative paths on the command line. |
| 25 void LaunchPlatformApp(Profile* profile, | 25 void LaunchPlatformApp(Profile* profile, |
| 26 const Extension* extension, | 26 const Extension* extension, |
| 27 const CommandLine* command_line, | 27 const CommandLine* command_line, |
| 28 const FilePath& current_directory); | 28 const FilePath& current_directory); |
| 29 | 29 |
| 30 // Launches the platform app |extension| at the specific |file_path| given. | |
|
benwells
2012/09/04 04:41:32
at the specific |file_path| given => with the cont
thorogood
2012/09/04 05:26:00
Done.
| |
| 31 void LaunchPlatformAppWithPath(Profile* profile, | |
| 32 const Extension* extension, | |
| 33 const FilePath& file_path); | |
| 34 | |
| 30 // Launches the platform app |extension| with the supplied web intent. Creates | 35 // Launches the platform app |extension| with the supplied web intent. Creates |
| 31 // appropriate launch data for the |web_intent_data| field present. |extension| | 36 // appropriate launch data for the |web_intent_data| field present. |extension| |
| 32 // and |profile| must not be NULL. | 37 // and |profile| must not be NULL. |
| 33 void LaunchPlatformAppWithWebIntent( | 38 void LaunchPlatformAppWithWebIntent( |
| 34 Profile* profile, | 39 Profile* profile, |
| 35 const Extension* extension, | 40 const Extension* extension, |
| 36 content::WebIntentsDispatcher* intents_dispatcher, | 41 content::WebIntentsDispatcher* intents_dispatcher, |
| 37 content::WebContents* source); | 42 content::WebContents* source); |
| 38 | 43 |
| 39 } // namespace extensions | 44 } // namespace extensions |
| 40 | 45 |
| 41 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_ | 46 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_ |
| OLD | NEW |