Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: trunk/src/apps/launcher.h

Issue 23600025: Revert 222235 ""Redirecting URLs to Packaged Apps" implementatio..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/src/apps/launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 APPS_LAUNCHER_H_ 5 #ifndef APPS_LAUNCHER_H_
6 #define APPS_LAUNCHER_H_ 6 #define APPS_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class CommandLine; 10 class CommandLine;
11 class GURL;
12 class Profile; 11 class Profile;
13 12
14 namespace base { 13 namespace base {
15 class FilePath; 14 class FilePath;
16 } 15 }
17 16
18 namespace extensions { 17 namespace extensions {
19 class Extension; 18 class Extension;
20 } 19 }
21 20
22 namespace apps { 21 namespace apps {
23 22
24 // Launches the platform app |extension|. Creates appropriate launch data for 23 // Launches the platform app |extension|. Creates appropriate launch data for
25 // the |command_line| fields present. |extension| and |profile| must not be 24 // the |command_line| fields present. |extension| and |profile| must not be
26 // NULL. A NULL |command_line| means there is no launch data. If non-empty, 25 // NULL. A NULL |command_line| means there is no launch data. If non-empty,
27 // |current_directory| is used to expand any relative paths on the command line. 26 // |current_directory| is used to expand any relative paths on the command line.
28 void LaunchPlatformAppWithCommandLine(Profile* profile, 27 void LaunchPlatformAppWithCommandLine(Profile* profile,
29 const extensions::Extension* extension, 28 const extensions::Extension* extension,
30 const CommandLine* command_line, 29 const CommandLine* command_line,
31 const base::FilePath& current_directory); 30 const base::FilePath& current_directory);
32 31
33 // Launches the platform app |extension| by issuing an onLaunched event 32 // Launches the platform app |extension| with the contents of |file_path|
34 // with the contents of |file_path| available through the launch data. 33 // available through the launch data.
35 void LaunchPlatformAppWithPath(Profile* profile, 34 void LaunchPlatformAppWithPath(Profile* profile,
36 const extensions::Extension* extension, 35 const extensions::Extension* extension,
37 const base::FilePath& file_path); 36 const base::FilePath& file_path);
38 37
39 // Launches the platform app |extension| with no launch data. 38 // Launches the platform app |extension| with no launch data.
40 void LaunchPlatformApp(Profile* profile, 39 void LaunchPlatformApp(Profile* profile,
41 const extensions::Extension* extension); 40 const extensions::Extension* extension);
42 41
43 // Launches the platform app |extension| with |handler_id| and the contents of 42 // Launches the platform app |extension| with the contents of |file_path|
44 // |file_path| available through the launch data. |handler_id| corresponds to 43 // available through the launch data.
45 // the id of the file_handlers item in the manifest that resulted in a match
46 // that triggered this launch.
47 void LaunchPlatformAppWithFileHandler(Profile* profile, 44 void LaunchPlatformAppWithFileHandler(Profile* profile,
48 const extensions::Extension* extension, 45 const extensions::Extension* extension,
49 const std::string& handler_id, 46 const std::string& handler_id,
50 const base::FilePath& file_path); 47 const base::FilePath& file_path);
51 48
52 // Launches the platform app |extension| with |handler_id|, |url| and
53 // |referrer_url| available through the launch data. |handler_id| corresponds to
54 // the id of the file_handlers item in the manifest that resulted in a match
55 // that triggered this launch.
56 void LaunchPlatformAppWithUrl(Profile* profile,
57 const extensions::Extension* extension,
58 const std::string& handler_id,
59 const GURL& url,
60 const GURL& referrer_url);
61
62 void RestartPlatformApp(Profile* profile, 49 void RestartPlatformApp(Profile* profile,
63 const extensions::Extension* extension); 50 const extensions::Extension* extension);
64 51
65 } // namespace apps 52 } // namespace apps
66 53
67 #endif // APPS_LAUNCHER_H_ 54 #endif // APPS_LAUNCHER_H_
OLDNEW
« no previous file with comments | « no previous file | trunk/src/apps/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698