Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: content/renderer/context_menu_params_builder.cc

Issue 27026002: CT: Adding preliminary Certificate Transparency support to Chromium. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Distinguish between SCTs from unknown logs and unverified ones Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/ssl_status.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 &params.security_info.cert_id, 79 data.securityInfo,
80 &params.security_info.cert_status, 80 &params.security_info.cert_id,
81 &params.security_info.security_bits, 81 &params.security_info.cert_status,
82 &params.security_info.connection_status); 82 &params.security_info.security_bits,
83 &params.security_info.connection_status,
84 &params.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
OLDNEW
« no previous file with comments | « content/public/common/ssl_status.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698