OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 kOutdatedDisallowed, | 43 kOutdatedDisallowed, |
44 kPlayImportantContent, | 44 kPlayImportantContent, |
45 kUnauthorized, | 45 kUnauthorized, |
46 }; | 46 }; |
47 | 47 |
48 namespace IPC { | 48 namespace IPC { |
49 | 49 |
50 template <> | 50 template <> |
51 struct ParamTraits<ContentSettingsPattern> { | 51 struct ParamTraits<ContentSettingsPattern> { |
52 typedef ContentSettingsPattern param_type; | 52 typedef ContentSettingsPattern param_type; |
| 53 static void GetSize(base::PickleSizer* s, const param_type& p); |
53 static void Write(base::Pickle* m, const param_type& p); | 54 static void Write(base::Pickle* m, const param_type& p); |
54 static bool Read(const base::Pickle* m, | 55 static bool Read(const base::Pickle* m, |
55 base::PickleIterator* iter, | 56 base::PickleIterator* iter, |
56 param_type* r); | 57 param_type* r); |
57 static void Log(const param_type& p, std::string* l); | 58 static void Log(const param_type& p, std::string* l); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace IPC | 61 } // namespace IPC |
61 | 62 |
62 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 63 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
575 | 576 |
576 // Record a sample string to a Rappor metric. | 577 // Record a sample string to a Rappor metric. |
577 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 578 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
578 std::string /* metric */, | 579 std::string /* metric */, |
579 std::string /* sample */) | 580 std::string /* sample */) |
580 | 581 |
581 // Record a domain and registry of a url to a Rappor metric. | 582 // Record a domain and registry of a url to a Rappor metric. |
582 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 583 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
583 std::string /* metric */, | 584 std::string /* metric */, |
584 GURL /* sample url */) | 585 GURL /* sample url */) |
OLD | NEW |