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

Unified Diff: content/common/ssl_status_serialization.h

Issue 9382037: Move ContextMenuParams struct from webkit/glue to content/public/common. The reasons are: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: content/common/ssl_status_serialization.h
===================================================================
--- content/common/ssl_status_serialization.h (revision 0)
+++ content/common/ssl_status_serialization.h (revision 0)
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
+#define CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
+#pragma once
+
+#include <string>
+
+#include "net/base/cert_status_flags.h"
+
+namespace content {
+
+// Convenience methods for serializing/deserializing the security info.
+std::string SerializeSecurityInfo(int cert_id,
+ net::CertStatus cert_status,
+ int security_bits,
+ int connection_status);
+
+bool DeserializeSecurityInfo(const std::string& state,
+ int* cert_id,
+ net::CertStatus* cert_status,
+ int* security_bits,
+ int* connection_status);
+
+} // namespace content
+
+#endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
Property changes on: content\common\ssl_status_serialization.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698