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

Unified Diff: extensions/browser/api/app_runtime/app_runtime_api.h

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Rebase Created 4 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: extensions/browser/api/app_runtime/app_runtime_api.h
diff --git a/extensions/browser/api/app_runtime/app_runtime_api.h b/extensions/browser/api/app_runtime/app_runtime_api.h
index 1548387b2e57d4b0040b00cd457c2fc15139d51c..7302c21233df0b4cf850ef7310098df688cef0af 100644
--- a/extensions/browser/api/app_runtime/app_runtime_api.h
+++ b/extensions/browser/api/app_runtime/app_runtime_api.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/optional.h"
#include "extensions/common/constants.h"
class GURL;
@@ -39,7 +40,8 @@ class AppRuntimeEventRouter {
// Dispatches the onLaunched event to the given app.
static void DispatchOnLaunchedEvent(content::BrowserContext* context,
const Extension* extension,
- extensions::AppLaunchSource source);
+ extensions::AppLaunchSource source,
+ base::Optional<ActionData> action_data);
// Dispatches the onRestarted event to the given app, providing a list of
// restored file entries from the previous run.
@@ -64,9 +66,11 @@ class AppRuntimeEventRouter {
static void DispatchOnLaunchedEventWithFileEntries(
content::BrowserContext* context,
const Extension* extension,
+ extensions::AppLaunchSource source,
const std::string& handler_id,
const std::vector<EntryInfo>& entries,
- const std::vector<GrantedFileEntry>& file_entries);
+ const std::vector<GrantedFileEntry>& file_entries,
+ base::Optional<ActionData> action_data);
// |handler_id| corresponds to the id of the url_handlers item
// in the manifest that resulted in a match which triggered this launch.

Powered by Google App Engine
This is Rietveld 408576698