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

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

Issue 363563004: Move extensions-only render IPC messages into the extension messages header. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « chrome/common/common_message_generator.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/chrome_extension_messages.h
diff --git a/chrome/common/extensions/chrome_extension_messages.h b/chrome/common/extensions/chrome_extension_messages.h
index 237241229e1976633b24c5a73f4b8b7d428adc58..5ce682fff84d7255c4d4014fb651189e42064592 100644
--- a/chrome/common/extensions/chrome_extension_messages.h
+++ b/chrome/common/extensions/chrome_extension_messages.h
@@ -8,15 +8,27 @@
//
// Multiply-included message file, hence no include guard.
+#include <string>
+
+#include "base/strings/string16.h"
#include "chrome/common/extensions/api/webstore/webstore_api_constants.h"
#include "chrome/common/web_application_info.h"
+#include "extensions/common/stack_frame.h"
#include "ipc/ipc_message_macros.h"
+#include "url/gurl.h"
#define IPC_MESSAGE_START ChromeExtensionMsgStart
IPC_ENUM_TRAITS_MAX_VALUE(extensions::api::webstore::InstallStage,
extensions::api::webstore::INSTALL_STAGE_INSTALLING)
+IPC_STRUCT_TRAITS_BEGIN(extensions::StackFrame)
+ IPC_STRUCT_TRAITS_MEMBER(line_number)
+ IPC_STRUCT_TRAITS_MEMBER(column_number)
+ IPC_STRUCT_TRAITS_MEMBER(source)
+ IPC_STRUCT_TRAITS_MEMBER(function)
+IPC_STRUCT_TRAITS_END()
+
IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo)
IPC_STRUCT_TRAITS_MEMBER(url)
IPC_STRUCT_TRAITS_MEMBER(width)
@@ -38,13 +50,14 @@ IPC_STRUCT_TRAITS_END()
IPC_MESSAGE_ROUTED1(ChromeExtensionMsg_GetApplicationInfo,
int32 /* page_id */)
-// Sent by the renderer to implement chrome.webstore.install().
-IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
- int32 /* install id */,
- int32 /* return route id */,
- std::string /* Web Store item ID */,
- GURL /* requestor URL */,
- int /* listeners_mask */)
+// Set the top-level frame to the provided name.
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetName,
+ std::string /* frame_name */)
+
+// Toggles visual muting of the render view area. This is on when a constrained
+// window is showing.
+IPC_MESSAGE_ROUTED1(ChromeViewMsg_SetVisuallyDeemphasized,
+ bool /* deemphazied */)
// Sent to the renderer if install stage updates were requested for an inline
// install.
@@ -65,6 +78,35 @@ IPC_MESSAGE_ROUTED3(ExtensionMsg_InlineWebstoreInstallResponse,
// Messages sent from the renderer to the browser.
+// Informs the browser of updated frame names.
+IPC_MESSAGE_ROUTED2(ChromeViewHostMsg_UpdateFrameName,
+ bool /* is_top_level */,
+ std::string /* name */)
+
+// Sent by the renderer to check if a URL has permission to trigger a clipboard
+// read/write operation from the DOM.
+IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardRead,
+ GURL /* origin */,
+ bool /* allowed */)
+IPC_SYNC_MESSAGE_CONTROL1_1(ChromeViewHostMsg_CanTriggerClipboardWrite,
+ GURL /* origin */,
+ bool /* allowed */)
+
+// Tells listeners that a detailed message was reported to the console by
+// WebKit.
+IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded,
+ base::string16 /* message */,
+ base::string16 /* source */,
+ extensions::StackTrace /* stack trace */,
+ int32 /* severity level */)
Lei Zhang 2014/07/02 21:42:41 I suppose I should put a newline here.
+// Sent by the renderer to implement chrome.webstore.install().
+IPC_MESSAGE_ROUTED5(ExtensionHostMsg_InlineWebstoreInstall,
+ int32 /* install id */,
+ int32 /* return route id */,
+ std::string /* Web Store item ID */,
+ GURL /* requestor URL */,
+ int /* listeners_mask */)
+
IPC_MESSAGE_ROUTED2(ChromeExtensionHostMsg_DidGetApplicationInfo,
int32 /* page_id */,
WebApplicationInfo)
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698