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

Unified 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: Fully reverted extension_service.cc to original form 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/platform_app_launcher.h
diff --git a/chrome/browser/extensions/platform_app_launcher.h b/chrome/browser/extensions/platform_app_launcher.h
index fc7965a720fe6feaf5cf83cbcc3cd3572582c546..f75146d745048e77a1fd16c56ea574164075076a 100644
--- a/chrome/browser/extensions/platform_app_launcher.h
+++ b/chrome/browser/extensions/platform_app_launcher.h
@@ -9,6 +9,7 @@
#include <vector>
class CommandLine;
+class GURL;
class Profile;
namespace base {
@@ -36,14 +37,15 @@ void LaunchPlatformApp(Profile* profile,
const CommandLine* command_line,
const base::FilePath& current_directory);
-// Launches the platform app |extension| with the contents of |file_path|
-// available through the launch data.
+// Launches the platform app |extension| by issuing an onLaunched event to it,
+// with the contents of |file_path| available through the launch data.
void LaunchPlatformAppWithPath(Profile* profile,
const Extension* extension,
const base::FilePath& file_path);
-// Launches the platform app |extension| with the contents of |file_path|
-// available through the launch data.
+// Launches the platform app |extension| by issuing an onLaunched event to it,
+// with the contents of |file_path| and the |handler_id| available through the
+// launch data.
void LaunchPlatformAppWithFileHandler(Profile* profile,
const Extension* extension,
const std::string& handler_id,
@@ -55,6 +57,14 @@ void RestartPlatformAppWithFileEntries(
const std::vector<app_file_handler_util::SavedFileEntry>&
saved_file_entries);
+// Launches the patform app |extension| by issuing an onLaunched event to it,
+// with |url| and |referrer_url| available through the launch data.
+void LaunchPlatformAppWithUrl(Profile* profile,
+ const Extension* extension,
+ const std::string& handler_id,
+ const GURL& url,
+ const GURL& referrer_url);
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_LAUNCHER_H_

Powered by Google App Engine
This is Rietveld 408576698