| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/gfx/native_widget_types.h" | 13 #include "base/gfx/native_widget_types.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 16 #include "chrome/browser/renderer_host/resource_handler.h" | 16 #include "chrome/browser/renderer_host/resource_handler.h" |
| 17 #include "chrome/common/common_param_traits.h" | 17 #include "chrome/common/common_param_traits.h" |
| 18 #include "chrome/common/css_colors.h" | 18 #include "chrome/common/css_colors.h" |
| 19 #include "chrome/common/extensions/update_manifest.h" | 19 #include "chrome/common/extensions/update_manifest.h" |
| 20 #include "chrome/common/extensions/url_pattern.h" |
| 20 #include "chrome/common/filter_policy.h" | 21 #include "chrome/common/filter_policy.h" |
| 21 #include "chrome/common/modal_dialog_event.h" | 22 #include "chrome/common/modal_dialog_event.h" |
| 22 #include "chrome/common/page_transition_types.h" | 23 #include "chrome/common/page_transition_types.h" |
| 23 #include "chrome/common/renderer_preferences.h" | 24 #include "chrome/common/renderer_preferences.h" |
| 24 #include "chrome/common/transport_dib.h" | 25 #include "chrome/common/transport_dib.h" |
| 25 #include "chrome/common/view_types.h" | 26 #include "chrome/common/view_types.h" |
| 26 #include "chrome/common/webkit_param_traits.h" | 27 #include "chrome/common/webkit_param_traits.h" |
| 27 #include "googleurl/src/gurl.h" | 28 #include "googleurl/src/gurl.h" |
| 28 #include "ipc/ipc_message_utils.h" | 29 #include "ipc/ipc_message_utils.h" |
| 29 #include "media/audio/audio_output.h" | 30 #include "media/audio/audio_output.h" |
| (...skipping 2002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2032 l->append(L", "); | 2033 l->append(L", "); |
| 2033 LogParam(p.browser_min_version, l); | 2034 LogParam(p.browser_min_version, l); |
| 2034 l->append(L", "); | 2035 l->append(L", "); |
| 2035 LogParam(p.package_hash, l); | 2036 LogParam(p.package_hash, l); |
| 2036 l->append(L", "); | 2037 l->append(L", "); |
| 2037 LogParam(p.crx_url, l); | 2038 LogParam(p.crx_url, l); |
| 2038 l->append(L")"); | 2039 l->append(L")"); |
| 2039 } | 2040 } |
| 2040 }; | 2041 }; |
| 2041 | 2042 |
| 2043 // Traits for URLPattern. |
| 2044 template <> |
| 2045 struct ParamTraits<URLPattern> { |
| 2046 typedef URLPattern param_type; |
| 2047 static void Write(Message* m, const param_type& p) { |
| 2048 WriteParam(m, p.GetAsString()); |
| 2049 } |
| 2050 static bool Read(const Message* m, void** iter, param_type* p) { |
| 2051 std::string spec; |
| 2052 if (!ReadParam(m, iter, &spec)) |
| 2053 return false; |
| 2054 |
| 2055 return p->Parse(spec); |
| 2056 } |
| 2057 static void Log(const param_type& p, std::wstring* l) { |
| 2058 LogParam(p.GetAsString(), l); |
| 2059 } |
| 2060 }; |
| 2061 |
| 2042 } // namespace IPC | 2062 } // namespace IPC |
| 2043 | 2063 |
| 2044 | 2064 |
| 2045 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2065 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 2046 #include "ipc/ipc_message_macros.h" | 2066 #include "ipc/ipc_message_macros.h" |
| 2047 | 2067 |
| 2048 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2068 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |