| 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 <stddef.h> |
| 8 |
| 7 #include "content/common/ssl_status_serialization.h" | 9 #include "content/common/ssl_status_serialization.h" |
| 8 #include "content/public/common/context_menu_params.h" | 10 #include "content/public/common/context_menu_params.h" |
| 9 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
| 10 #include "content/renderer/history_serialization.h" | 12 #include "content/renderer/history_serialization.h" |
| 11 #include "content/renderer/menu_item_builder.h" | 13 #include "content/renderer/menu_item_builder.h" |
| 12 | 14 |
| 13 namespace content { | 15 namespace content { |
| 14 | 16 |
| 15 // static | 17 // static |
| 16 ContextMenuParams ContextMenuParamsBuilder::Build( | 18 ContextMenuParams ContextMenuParamsBuilder::Build( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 params.link_text = data.linkText; | 64 params.link_text = data.linkText; |
| 63 | 65 |
| 64 // Deserialize the SSL info. | 66 // Deserialize the SSL info. |
| 65 if (!data.securityInfo.isEmpty()) | 67 if (!data.securityInfo.isEmpty()) |
| 66 CHECK(DeserializeSecurityInfo(data.securityInfo, ¶ms.security_info)); | 68 CHECK(DeserializeSecurityInfo(data.securityInfo, ¶ms.security_info)); |
| 67 | 69 |
| 68 return params; | 70 return params; |
| 69 } | 71 } |
| 70 | 72 |
| 71 } // namespace content | 73 } // namespace content |
| OLD | NEW |