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

Side by Side Diff: components/proximity_auth/cryptauth/secure_message_delegate.h

Issue 1728033002: components: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_PROXIMITY_AUTH_SECURE_MESSAGE_DELEGATE_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_SECURE_MESSAGE_DELEGATE_H
6 #define COMPONENTS_PROXIMITY_AUTH_SECURE_MESSAGE_DELEGATE_H 6 #define COMPONENTS_PROXIMITY_AUTH_SECURE_MESSAGE_DELEGATE_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "components/proximity_auth/cryptauth/proto/securemessage.pb.h" 11 #include "components/proximity_auth/cryptauth/proto/securemessage.pb.h"
12 12
13 namespace proximity_auth { 13 namespace proximity_auth {
14 14
15 // Interface of delegate responsible for cryptographic operations based on the 15 // Interface of delegate responsible for cryptographic operations based on the
16 // secure message library. This interface is asynchronous as the current 16 // secure message library. This interface is asynchronous as the current
17 // implementation on ChromeOS communicates with a daemon process over IPC. 17 // implementation on ChromeOS communicates with a daemon process over IPC.
18 class SecureMessageDelegate { 18 class SecureMessageDelegate {
19 public: 19 public:
20 // Fields specifying how to create a SecureMessage. 20 // Fields specifying how to create a SecureMessage.
21 struct CreateOptions { 21 struct CreateOptions {
22 CreateOptions(); 22 CreateOptions();
23 CreateOptions(const CreateOptions& other);
23 ~CreateOptions(); 24 ~CreateOptions();
24 25
25 // The scheme used to encrypt the message. 26 // The scheme used to encrypt the message.
26 securemessage::EncScheme encryption_scheme; 27 securemessage::EncScheme encryption_scheme;
27 // The scheme used to sign the message. 28 // The scheme used to sign the message.
28 securemessage::SigScheme signature_scheme; 29 securemessage::SigScheme signature_scheme;
29 // Additional data that is used as part of the signature computation but not 30 // Additional data that is used as part of the signature computation but not
30 // included in the message contents. 31 // included in the message contents.
31 std::string associated_data; 32 std::string associated_data;
32 // Plain-text data included in the message header. 33 // Plain-text data included in the message header.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 virtual void UnwrapSecureMessage( 93 virtual void UnwrapSecureMessage(
93 const std::string& serialized_message, 94 const std::string& serialized_message,
94 const std::string& key, 95 const std::string& key,
95 const UnwrapOptions& unwrap_options, 96 const UnwrapOptions& unwrap_options,
96 const UnwrapSecureMessageCallback& callback) = 0; 97 const UnwrapSecureMessageCallback& callback) = 0;
97 }; 98 };
98 99
99 } // namespace proximity_auth 100 } // namespace proximity_auth
100 101
101 #endif // COMPONENTS_PROXIMITY_AUTH_SECURE_MESSAGE_DELEGATE_H 102 #endif // COMPONENTS_PROXIMITY_AUTH_SECURE_MESSAGE_DELEGATE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698