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

Unified Diff: extensions/common/extension_messages.h

Issue 2241203003: Pass user session type to extension feature checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass user session type to extension renderer Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/features/feature_session_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_messages.h
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 320bda7ac3622a32fcd3a76fae908b12b0f5ba33..b0a7d931c9a5803f65be9c6c5cf4655e15313321 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -19,6 +19,7 @@
#include "extensions/common/draggable_region.h"
#include "extensions/common/extension.h"
#include "extensions/common/extensions_client.h"
+#include "extensions/common/features/feature_session_type.h"
#include "extensions/common/host_id.h"
#include "extensions/common/permissions/media_galleries_permission_data.h"
#include "extensions/common/permissions/permission_set.h"
@@ -46,6 +47,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(extensions::UserScript::RunLocation,
IPC_ENUM_TRAITS_MAX_VALUE(HostID::HostType, HostID::HOST_TYPE_LAST)
IPC_ENUM_TRAITS_MAX_VALUE(version_info::Channel, version_info::Channel::STABLE)
+IPC_ENUM_TRAITS_MAX_VALUE(extensions::FeatureSessionType,
+ extensions::FeatureSessionType::LAST)
// Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog and
// ExtensionHostMsg_AddEventToActivityLog.
@@ -590,9 +593,11 @@ IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect,
int /* port_id */,
std::string /* error_message */)
-// Informs the renderer what channel (dev, beta, stable, etc) is running.
-IPC_MESSAGE_CONTROL1(ExtensionMsg_SetChannel,
- version_info::Channel /* channel */)
+// Informs the renderer what channel (dev, beta, stable, etc) and user session
+// type is running.
+IPC_MESSAGE_CONTROL2(ExtensionMsg_SetSessionInfo,
+ version_info::Channel /* channel */,
+ extensions::FeatureSessionType /* session_type */)
// Notify the renderer that its window has closed.
IPC_MESSAGE_ROUTED0(ExtensionMsg_AppWindowClosed)
« no previous file with comments | « extensions/common/BUILD.gn ('k') | extensions/common/features/feature_session_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698