summaryrefslogtreecommitdiffstats
path: root/chrome/common/render_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/render_messages.h')
-rw-r--r--chrome/common/render_messages.h88
1 files changed, 29 insertions, 59 deletions
diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
index 258734a..2e94d53 100644
--- a/chrome/common/render_messages.h
+++ b/chrome/common/render_messages.h
@@ -11,7 +11,6 @@
// TODO(erg): This list has been temporarily annotated by erg while doing work
// on which headers to pull out.
-#include "app/clipboard/clipboard.h" // enum
#include "base/basictypes.h"
#include "base/ref_counted.h"
#include "base/string16.h"
@@ -23,6 +22,7 @@
#include "chrome/common/webkit_param_traits.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/ipc_platform_file.h" // ifdefed typedef.
+#include "ui/base/clipboard/clipboard.h" // enum
#include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status
#include "webkit/fileapi/file_system_types.h" // enum fileapi::FileSystemType
@@ -48,14 +48,8 @@ namespace webkit_blob {
class BlobData;
}
-namespace speech_input {
-struct SpeechInputResultItem;
-}
-
namespace webkit_glue {
-struct FormData;
-class FormField;
-struct PasswordFormFillData;
+struct CustomContextMenuContext;
struct ResourceDevToolsInfo;
struct ResourceLoadTimingInfo;
struct ResourceResponseInfo;
@@ -111,8 +105,7 @@ struct ViewHostMsg_ShowNotification_Params;
struct ViewMsg_New_Params;
struct ViewHostMsg_CreateWindow_Params;
struct ViewHostMsg_RunFileChooser_Params;
-struct ViewMsg_ExtensionRendererInfo;
-struct ViewMsg_ExtensionsUpdated_Params;
+struct ViewMsg_ExtensionLoaded_Params;
struct ViewMsg_DeviceOrientationUpdated_Params;
struct ViewHostMsg_DomMessage_Params;
struct ViewHostMsg_AccessibilityNotification_Params;
@@ -126,27 +119,38 @@ enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags {
kPreferredSizeHeightThisIsSlow = 1 << 1,
};
+// Command values for the cmd parameter of the
+// ViewHost_JavaScriptStressTestControl message. For each command the parameter
+// passed has a different meaning:
+// For the command kJavaScriptStressTestSetStressRunType the parameter it the
+// type taken from the enumeration v8::Testing::StressType.
+// For the command kJavaScriptStressTestPrepareStressRun the parameter it the
+// number of the stress run about to take place.
+enum ViewHostMsg_JavaScriptStressTestControl_Commands {
+ kJavaScriptStressTestSetStressRunType = 0,
+ kJavaScriptStressTestPrepareStressRun = 1,
+};
+
namespace IPC {
-// Traits for FormField_Params structure to pack/unpack.
+#if defined(OS_MACOSX)
+// Traits for FontDescriptor structure to pack/unpack.
template <>
-struct ParamTraits<webkit_glue::FormField> {
- typedef webkit_glue::FormField param_type;
+struct ParamTraits<FontDescriptor> {
+ typedef FontDescriptor param_type;
static void Write(Message* m, const param_type& p);
static bool Read(const Message* m, void** iter, param_type* p);
static void Log(const param_type& p, std::string* l);
};
+#endif
-#if defined(OS_MACOSX)
-// Traits for FontDescriptor structure to pack/unpack.
template <>
-struct ParamTraits<FontDescriptor> {
- typedef FontDescriptor param_type;
+struct ParamTraits<webkit_glue::CustomContextMenuContext> {
+ typedef webkit_glue::CustomContextMenuContext param_type;
static void Write(Message* m, const param_type& p);
static bool Read(const Message* m, void** iter, param_type* p);
static void Log(const param_type& p, std::string* l);
};
-#endif
template <>
struct ParamTraits<ContextMenuParams> {
@@ -181,15 +185,6 @@ struct ParamTraits<webkit::npapi::WebPluginInfo> {
static void Log(const param_type& p, std::string* l);
};
-// Traits for webkit_glue::PasswordFormDomManager::FillData.
-template <>
-struct ParamTraits<webkit_glue::PasswordFormFillData> {
- typedef webkit_glue::PasswordFormFillData param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* r);
- static void Log(const param_type& p, std::string* l);
-};
-
template <>
struct ParamTraits<scoped_refptr<net::HttpResponseHeaders> > {
typedef scoped_refptr<net::HttpResponseHeaders> param_type;
@@ -240,15 +235,6 @@ struct ParamTraits<SyncLoadResult> {
static void Log(const param_type& p, std::string* l);
};
-// Traits for FormData structure to pack/unpack.
-template <>
-struct ParamTraits<webkit_glue::FormData> {
- typedef webkit_glue::FormData param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
// Traits for reading/writing CSS Colors
template <>
struct ParamTraits<CSSColors::CSSColorName> {
@@ -431,30 +417,30 @@ struct ParamTraits<URLPattern> {
};
template <>
-struct ParamTraits<Clipboard::Buffer> {
- typedef Clipboard::Buffer param_type;
+struct ParamTraits<ui::Clipboard::Buffer> {
+ typedef ui::Clipboard::Buffer param_type;
static void Write(Message* m, const param_type& p) {
m->WriteInt(p);
}
static bool Read(const Message* m, void** iter, param_type* p) {
int buffer;
- if (!m->ReadInt(iter, &buffer) || !Clipboard::IsValidBuffer(buffer))
+ if (!m->ReadInt(iter, &buffer) || !ui::Clipboard::IsValidBuffer(buffer))
return false;
- *p = Clipboard::FromInt(buffer);
+ *p = ui::Clipboard::FromInt(buffer);
return true;
}
static void Log(const param_type& p, std::string* l) {
std::string type;
switch (p) {
- case Clipboard::BUFFER_STANDARD:
+ case ui::Clipboard::BUFFER_STANDARD:
type = "BUFFER_STANDARD";
break;
#if defined(USE_X11)
- case Clipboard::BUFFER_SELECTION:
+ case ui::Clipboard::BUFFER_SELECTION:
type = "BUFFER_SELECTION";
break;
#endif
- case Clipboard::BUFFER_DRAG:
+ case ui::Clipboard::BUFFER_DRAG:
type = "BUFFER_DRAG";
break;
default:
@@ -544,22 +530,6 @@ struct ParamTraits<AudioBuffersState> {
static void Log(const param_type& p, std::string* l);
};
-template <>
-struct ParamTraits<speech_input::SpeechInputResultItem> {
- typedef speech_input::SpeechInputResultItem param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
-struct ParamTraits<PP_Flash_NetAddress> {
- typedef PP_Flash_NetAddress param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
} // namespace IPC
#include "chrome/common/render_messages_internal.h"