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

Side by Side Diff: chrome/browser/extensions/platform_app_launcher.h

Issue 22944002: Implementation of the "Redirect URLs to Packaged Apps" feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
OLDNEW
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 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 class CommandLine; 11 class CommandLine;
12 class Profile; 12 class Profile;
13 class GURL;
13 14
14 namespace base { 15 namespace base {
15 class FilePath; 16 class FilePath;
16 } 17 }
17 18
18 namespace content { 19 namespace content {
19 class WebContents; 20 class WebContents;
20 } 21 }
21 22
22 namespace extensions { 23 namespace extensions {
(...skipping 19 matching lines...) Expand all
42 const Extension* extension, 43 const Extension* extension,
43 const base::FilePath& file_path); 44 const base::FilePath& file_path);
44 45
45 // Launches the platform app |extension| with the contents of |file_path| 46 // Launches the platform app |extension| with the contents of |file_path|
46 // available through the launch data. 47 // available through the launch data.
47 void LaunchPlatformAppWithFileHandler(Profile* profile, 48 void LaunchPlatformAppWithFileHandler(Profile* profile,
48 const Extension* extension, 49 const Extension* extension,
49 const std::string& handler_id, 50 const std::string& handler_id,
50 const base::FilePath& file_path); 51 const base::FilePath& file_path);
51 52
53 // Launches the platform app |extension| with URL |url| available through the
54 // launch data.
55 void LaunchPlatformAppWithURL(Profile* profile,
56 const Extension* extension,
57 const std::string& handler_id,
asargent_no_longer_on_chrome 2013/08/14 18:05:12 It would be helpful to have a comment above about
sergeygs 2013/08/18 11:40:24 Done.
58 const GURL& url,
59 const GURL& referrerUrl);
60
52 void RestartPlatformAppWithFileEntries( 61 void RestartPlatformAppWithFileEntries(
53 Profile* profile, 62 Profile* profile,
54 const Extension* extension, 63 const Extension* extension,
55 const std::vector<app_file_handler_util::SavedFileEntry>& 64 const std::vector<app_file_handler_util::SavedFileEntry>&
56 saved_file_entries); 65 saved_file_entries);
57 66
58 } // namespace extensions 67 } // namespace extensions
59 68
60 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_ 69 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698