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

Unified Diff: chrome/common/extensions/extension_messages.h

Issue 9958147: Fix some uses of global variables in transient pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/common/extensions/extension_messages.h
diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h
index 6480e2e336777bc53ce2d00bceb4b34ae7d91f5d..d1d68d213878a3565359f2e4b71470b4fdfd9049 100644
--- a/chrome/common/extensions/extension_messages.h
+++ b/chrome/common/extensions/extension_messages.h
@@ -256,6 +256,36 @@ IPC_MESSAGE_CONTROL2(ExtensionMsg_ShouldUnload,
IPC_MESSAGE_CONTROL1(ExtensionMsg_Unload,
std::string /* extension_id */)
+// Send to renderer once the installation mentioned on
+// ExtensionHostMsg_InlineWebstoreInstall is complete.
+IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse,
+ int32 /* install id */,
+ bool /* whether the install was successful */,
+ std::string /* error */)
+
+// Response to the renderer for the above message.
Yoyo Zhou 2012/04/04 18:52:24 "the above message" was already wrong, but change
Matt Perry 2012/04/04 19:21:44 Done.
+IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse,
+ std::string /* channel_id */,
+ std::string /* error */,
+ int32 /* callback_id */)
+
+// Dispatch the Port.onConnect event for message channels.
+IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect,
+ int /* target_port_id */,
+ std::string /* channel_name */,
+ std::string /* tab_json */,
+ std::string /* source_extension_id */,
+ std::string /* target_extension_id */)
+
+// Deliver a message sent with ExtensionHostMsg_PostMessage.
+IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage,
+ int /* target_port_id */,
+ std::string /* message */)
+
+IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect,
+ int /* port_id */,
+ bool /* connection_error */)
+
// Messages sent from the renderer to the browser.
// A renderer sends this message when an extension process starts an API
@@ -355,12 +385,6 @@ IPC_MESSAGE_ROUTED4(ExtensionHostMsg_InlineWebstoreInstall,
std::string /* Web Store item ID */,
GURL /* requestor URL */)
-// Send to renderer once the installation mentioned above is complete.
-IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse,
Matt Perry 2012/04/04 00:32:42 I moved the ExtensionMsg's up to their section.
- int32 /* install id */,
- bool /* whether the install was successful */,
- std::string /* error */)
-
// Sent by the renderer when an App is requesting permission to send server
// pushed notifications.
IPC_MESSAGE_ROUTED4(ExtensionHostMsg_GetAppNotifyChannel,
@@ -383,25 +407,17 @@ IPC_MESSAGE_CONTROL2(ExtensionHostMsg_ShouldUnloadAck,
IPC_MESSAGE_CONTROL1(ExtensionHostMsg_UnloadAck,
std::string /* extension_id */)
-// Response to the renderer for the above message.
-IPC_MESSAGE_ROUTED3(ExtensionMsg_GetAppNotifyChannelResponse,
- std::string /* channel_id */,
- std::string /* error */,
- int32 /* callback_id */)
-
-// Dispatch the Port.onConnect event for message channels.
-IPC_MESSAGE_ROUTED5(ExtensionMsg_DispatchOnConnect,
- int /* target_port_id */,
- std::string /* channel_name */,
- std::string /* tab_json */,
- std::string /* source_extension_id */,
- std::string /* target_extension_id */)
+// Informs the browser to increment the keepalive count for the lazy background
+// page, keeping it alive.
+IPC_MESSAGE_CONTROL1(ExtensionHostMsg_IncrementLazyKeepaliveCount,
+ std::string /* extension_id */)
-// Deliver a message sent with ExtensionHostMsg_PostMessage.
-IPC_MESSAGE_ROUTED2(ExtensionMsg_DeliverMessage,
- int /* target_port_id */,
- std::string /* message */)
+// Informs the browser there is one less thing keeping the lazy background page
+// alive.
+IPC_MESSAGE_CONTROL1(ExtensionHostMsg_DecrementLazyKeepaliveCount,
+ std::string /* extension_id */)
-IPC_MESSAGE_ROUTED2(ExtensionMsg_DispatchOnDisconnect,
- int /* port_id */,
- bool /* connection_error */)
+// Fetches a globally unique ID (for the lifetime of the browser) from the
+// browser process.
+IPC_SYNC_MESSAGE_CONTROL0_1(ExtensionHostMsg_GenerateUniqueID,
+ int /* unique_id */)

Powered by Google App Engine
This is Rietveld 408576698