OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/renderer/context_menu_params_builder.h" | 5 #include "content/renderer/context_menu_params_builder.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/common/ssl_status_serialization.h" | 8 #include "content/common/ssl_status_serialization.h" |
9 #include "content/public/common/context_menu_params.h" | 9 #include "content/public/common/context_menu_params.h" |
10 #include "content/public/renderer/history_item_serialization.h" | 10 #include "content/public/renderer/history_item_serialization.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 params.link_text = selectedElement.innerText(); | 68 params.link_text = selectedElement.innerText(); |
69 } else { | 69 } else { |
70 LOG(ERROR) << "Creating a ContextMenuParams for a node that has a link" | 70 LOG(ERROR) << "Creating a ContextMenuParams for a node that has a link" |
71 << "url but is not an ElementNode or does not have an" | 71 << "url but is not an ElementNode or does not have an" |
72 << "ancestor that is a link."; | 72 << "ancestor that is a link."; |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 // Deserialize the SSL info. | 76 // Deserialize the SSL info. |
77 if (!data.securityInfo.isEmpty()) { | 77 if (!data.securityInfo.isEmpty()) { |
78 DeserializeSecurityInfo(data.securityInfo, | 78 DeserializeSecurityInfo( |
79 ¶ms.security_info.cert_id, | 79 data.securityInfo, |
80 ¶ms.security_info.cert_status, | 80 ¶ms.security_info.cert_id, |
81 ¶ms.security_info.security_bits, | 81 ¶ms.security_info.cert_status, |
82 ¶ms.security_info.connection_status); | 82 ¶ms.security_info.security_bits, |
| 83 ¶ms.security_info.connection_status, |
| 84 ¶ms.security_info.signed_certificate_timestamp_id); |
83 } | 85 } |
84 | 86 |
85 return params; | 87 return params; |
86 } | 88 } |
87 | 89 |
88 } // namespace content | 90 } // namespace content |
OLD | NEW |