summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_messages.h
diff options
context:
space:
mode:
authorhanxi@chromium.org <hanxi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-18 19:27:39 +0000
committerhanxi@chromium.org <hanxi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-18 19:28:37 +0000
commit9a1314abdfe0c72482bafbc520ad738be3dd15fd (patch)
treec434dad8369b42cc9cedb71238144886a66e14a0 /extensions/common/extension_messages.h
parent8a188eee9d8bccc5345fe52254437412b94a3ea9 (diff)
downloadchromium_src-9a1314abdfe0c72482bafbc520ad738be3dd15fd.zip
chromium_src-9a1314abdfe0c72482bafbc520ad738be3dd15fd.tar.gz
chromium_src-9a1314abdfe0c72482bafbc520ad738be3dd15fd.tar.bz2
Rename two ipc messages in WebViewGuest and move their sender/handler to extensions:
- Rename ChromeViewHostMsg_UpdateFrameName to ExtensionHostMsg_UpdateFrameName. - Rename ChromeViewMsg_SetName to ExtensionMsg_SetName. BUG=352290 Review URL: https://codereview.chromium.org/473263002 Cr-Commit-Position: refs/heads/master@{#290326} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r--extensions/common/extension_messages.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 5878603..fc3071f 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -20,6 +20,7 @@
#include "extensions/common/permissions/permission_set.h"
#include "extensions/common/permissions/socket_permission_data.h"
#include "extensions/common/permissions/usb_device_permission_data.h"
+#include "extensions/common/stack_frame.h"
#include "extensions/common/url_pattern.h"
#include "extensions/common/url_pattern_set.h"
#include "extensions/common/user_script.h"
@@ -180,6 +181,13 @@ IPC_STRUCT_TRAITS_BEGIN(extensions::SocketPermissionData)
IPC_STRUCT_TRAITS_MEMBER(entry())
IPC_STRUCT_TRAITS_END()
+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(extensions::UsbDevicePermissionData)
IPC_STRUCT_TRAITS_MEMBER(vendor_id())
IPC_STRUCT_TRAITS_MEMBER(product_id())
@@ -349,6 +357,10 @@ IPC_MESSAGE_ROUTED5(ExtensionMsg_MessageInvoke,
IPC_MESSAGE_CONTROL1(ExtensionMsg_SetFunctionNames,
std::vector<std::string>)
+// Set the top-level frame to the provided name.
+IPC_MESSAGE_ROUTED1(ExtensionMsg_SetFrameName,
+ std::string /* frame_name */)
+
// Tell the renderer process the platforms system font.
IPC_MESSAGE_CONTROL2(ExtensionMsg_SetSystemFont,
std::string /* font_family */,
@@ -693,3 +705,16 @@ IPC_MESSAGE_ROUTED1(ExtensionHostMsg_OnWatchedPageChange,
// Sent by the renderer when it has received a Blob handle from the browser.
IPC_MESSAGE_CONTROL1(ExtensionHostMsg_TransferBlobsAck,
std::vector<std::string> /* blob_uuids */)
+
+// Informs of updated frame names.
+IPC_MESSAGE_ROUTED2(ExtensionHostMsg_FrameNameChanged,
+ bool /* is_top_level */,
+ std::string /* name */)
+
+// Tells listeners that a detailed message was reported to the console by
+// WebKit.
+IPC_MESSAGE_ROUTED4(ExtensionHostMsg_DetailedConsoleMessageAdded,
+ base::string16 /* message */,
+ base::string16 /* source */,
+ extensions::StackTrace /* stack trace */,
+ int32 /* severity level */)