| 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 29 matching lines...) Expand all Loading... |
| 40 kAllowed, | 40 kAllowed, |
| 41 kBlocked, | 41 kBlocked, |
| 42 kBlockedByPolicy, | 42 kBlockedByPolicy, |
| 43 kComponentUpdateRequired, | 43 kComponentUpdateRequired, |
| 44 kDisabled, | 44 kDisabled, |
| 45 kFlashHiddenPreferHtml, | 45 kFlashHiddenPreferHtml, |
| 46 kNotFound, | 46 kNotFound, |
| 47 kOutdatedBlocked, | 47 kOutdatedBlocked, |
| 48 kOutdatedDisallowed, | 48 kOutdatedDisallowed, |
| 49 kPlayImportantContent, | 49 kPlayImportantContent, |
| 50 kRestartRequired, |
| 50 kUnauthorized, | 51 kUnauthorized, |
| 51 }; | 52 }; |
| 52 | 53 |
| 53 namespace IPC { | 54 namespace IPC { |
| 54 | 55 |
| 55 template <> | 56 template <> |
| 56 struct ParamTraits<ContentSettingsPattern> { | 57 struct ParamTraits<ContentSettingsPattern> { |
| 57 typedef ContentSettingsPattern param_type; | 58 typedef ContentSettingsPattern param_type; |
| 58 static void GetSize(base::PickleSizer* s, const param_type& p); | 59 static void GetSize(base::PickleSizer* s, const param_type& p); |
| 59 static void Write(base::Pickle* m, const param_type& p); | 60 static void Write(base::Pickle* m, const param_type& p); |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 | 640 |
| 640 // Record a sample string to a Rappor metric. | 641 // Record a sample string to a Rappor metric. |
| 641 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, | 642 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRappor, |
| 642 std::string /* metric */, | 643 std::string /* metric */, |
| 643 std::string /* sample */) | 644 std::string /* sample */) |
| 644 | 645 |
| 645 // Record a domain and registry of a url to a Rappor metric. | 646 // Record a domain and registry of a url to a Rappor metric. |
| 646 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, | 647 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_RecordRapporURL, |
| 647 std::string /* metric */, | 648 std::string /* metric */, |
| 648 GURL /* sample url */) | 649 GURL /* sample url */) |
| OLD | NEW |