OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/common/render_messages_params.h" | 5 #include "chrome/common/render_messages_params.h" |
6 | 6 |
7 #include "chrome/common/navigation_gesture.h" | 7 #include "chrome/common/navigation_gesture.h" |
8 #include "chrome/common/common_param_traits.h" | 8 #include "chrome/common/common_param_traits.h" |
9 #include "chrome/common/indexed_db_param_traits.h" | 9 #include "chrome/common/indexed_db_param_traits.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
(...skipping 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1866 LogParam(p.source_url, l); | 1866 LogParam(p.source_url, l); |
1867 l->append(", "); | 1867 l->append(", "); |
1868 LogParam(p.request_id, l); | 1868 LogParam(p.request_id, l); |
1869 l->append(", "); | 1869 l->append(", "); |
1870 LogParam(p.has_callback, l); | 1870 LogParam(p.has_callback, l); |
1871 l->append(", "); | 1871 l->append(", "); |
1872 LogParam(p.user_gesture, l); | 1872 LogParam(p.user_gesture, l); |
1873 l->append(")"); | 1873 l->append(")"); |
1874 } | 1874 } |
1875 | 1875 |
1876 void ParamTraits<base::file_util_proxy::Entry>::Write( | 1876 void ParamTraits<base::FileUtilProxy::Entry>::Write( |
1877 Message* m, | 1877 Message* m, |
1878 const param_type& p) { | 1878 const param_type& p) { |
1879 WriteParam(m, p.name); | 1879 WriteParam(m, p.name); |
1880 WriteParam(m, p.is_directory); | 1880 WriteParam(m, p.is_directory); |
1881 } | 1881 } |
1882 | 1882 |
1883 bool ParamTraits<base::file_util_proxy::Entry>::Read( | 1883 bool ParamTraits<base::FileUtilProxy::Entry>::Read( |
1884 const Message* m, | 1884 const Message* m, |
1885 void** iter, | 1885 void** iter, |
1886 param_type* p) { | 1886 param_type* p) { |
1887 return | 1887 return |
1888 ReadParam(m, iter, &p->name) && | 1888 ReadParam(m, iter, &p->name) && |
1889 ReadParam(m, iter, &p->is_directory); | 1889 ReadParam(m, iter, &p->is_directory); |
1890 } | 1890 } |
1891 | 1891 |
1892 void ParamTraits<base::file_util_proxy::Entry>::Log( | 1892 void ParamTraits<base::FileUtilProxy::Entry>::Log( |
1893 const param_type& p, | 1893 const param_type& p, |
1894 std::string* l) { | 1894 std::string* l) { |
1895 l->append("("); | 1895 l->append("("); |
1896 LogParam(p.name, l); | 1896 LogParam(p.name, l); |
1897 l->append(", "); | 1897 l->append(", "); |
1898 LogParam(p.is_directory, l); | 1898 LogParam(p.is_directory, l); |
1899 l->append(")"); | 1899 l->append(")"); |
1900 } | 1900 } |
1901 | 1901 |
1902 void ParamTraits<ViewHostMsg_AccessibilityNotification_Params>::Write( | 1902 void ParamTraits<ViewHostMsg_AccessibilityNotification_Params>::Write( |
(...skipping 16 matching lines...) Expand all Loading... |
1919 const param_type& p, | 1919 const param_type& p, |
1920 std::string* l) { | 1920 std::string* l) { |
1921 l->append("("); | 1921 l->append("("); |
1922 LogParam(p.notification_type, l); | 1922 LogParam(p.notification_type, l); |
1923 l->append(", "); | 1923 l->append(", "); |
1924 LogParam(p.acc_obj, l); | 1924 LogParam(p.acc_obj, l); |
1925 l->append(")"); | 1925 l->append(")"); |
1926 } | 1926 } |
1927 | 1927 |
1928 } // namespace IPC | 1928 } // namespace IPC |
OLD | NEW |