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

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: . 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/common/extension_messages.h
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 320bda7ac3622a32fcd3a76fae908b12b0f5ba33..513b79e03c54c24097347efcc6adf83780e6fcb3 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::FEATURE_SESSION_TYPE_MAX)
// Parameters structure for ExtensionHostMsg_AddAPIActionToActivityLog and
// ExtensionHostMsg_AddEventToActivityLog.
@@ -616,6 +619,11 @@ IPC_MESSAGE_CONTROL1(ExtensionMsg_TransferBlobs,
IPC_MESSAGE_CONTROL1(ExtensionMsg_SetWebViewPartitionID,
std::string /* webview_partition_id */)
+// Sent on renderer process startup to indicate the user session type in which
+// the process is running.
+IPC_MESSAGE_CONTROL1(ExtensionMsg_SetUserSessionType,
+ extensions::FeatureSessionType)
+
// Messages sent from the renderer to the browser:
// A renderer sends this message when an extension process starts an API

Powered by Google App Engine
This is Rietveld 408576698