| Index: chrome/common/render_messages.h
|
| diff --git a/chrome/common/render_messages.h b/chrome/common/render_messages.h
|
| index ee8c7516d7a922bde627b71e2fe3e8941921b032..e1d8d2bdb21b1814823649e7225ef83e91199480 100644
|
| --- a/chrome/common/render_messages.h
|
| +++ b/chrome/common/render_messages.h
|
| @@ -17,6 +17,7 @@
|
| #include "chrome/common/common_param_traits.h"
|
| #include "chrome/common/css_colors.h"
|
| #include "chrome/common/extensions/update_manifest.h"
|
| +#include "chrome/common/extensions/url_pattern.h"
|
| #include "chrome/common/filter_policy.h"
|
| #include "chrome/common/modal_dialog_event.h"
|
| #include "chrome/common/page_transition_types.h"
|
| @@ -2039,6 +2040,25 @@ struct ParamTraits<UpdateManifest::Result> {
|
| }
|
| };
|
|
|
| +// Traits for URLPattern.
|
| +template <>
|
| +struct ParamTraits<URLPattern> {
|
| + typedef URLPattern param_type;
|
| + static void Write(Message* m, const param_type& p) {
|
| + WriteParam(m, p.GetAsString());
|
| + }
|
| + static bool Read(const Message* m, void** iter, param_type* p) {
|
| + std::string spec;
|
| + if (!ReadParam(m, iter, &spec))
|
| + return false;
|
| +
|
| + return p->Parse(spec);
|
| + }
|
| + static void Log(const param_type& p, std::wstring* l) {
|
| + LogParam(p.GetAsString(), l);
|
| + }
|
| +};
|
| +
|
| } // namespace IPC
|
|
|
|
|
|
|