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

Side by Side Diff: chrome/common/extensions/api/networking_private/networking_private_crypto.h

Issue 102993002: Implement Networking Private API VerifyAndEncryptCredentials method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to r254157 Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYP TO_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYPT O_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYP TO_H_ 6 #define CHROME_COMMON_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYPT O_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 // Implementation of Crypto support for networking private API. 11 // Implementation of Crypto support for networking private API.
12 // Based on chromeos_public//src/platform/shill/shims/crypto_util.cc 12 // Based on chromeos_public//src/platform/shill/shims/crypto_util.cc
13 class NetworkingPrivateCrypto { 13 class NetworkingPrivateCrypto {
14 public: 14 public:
15 NetworkingPrivateCrypto(); 15 NetworkingPrivateCrypto();
16 ~NetworkingPrivateCrypto(); 16 ~NetworkingPrivateCrypto();
(...skipping 29 matching lines...) Expand all
46 // 46 //
47 // Returns true on success, storing the decrypted result in 47 // Returns true on success, storing the decrypted result in
48 // |decrypted_output|. 48 // |decrypted_output|.
49 bool DecryptByteString(const std::string& private_key_pem, 49 bool DecryptByteString(const std::string& private_key_pem,
50 const std::string& encrypted_data, 50 const std::string& encrypted_data,
51 std::string* decrypted_output); 51 std::string* decrypted_output);
52 52
53 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateCrypto); 53 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateCrypto);
54 }; 54 };
55 55
56 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_C RYPTO_H_ 56 #endif // CHROME_COMMON_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CR YPTO_H_
57
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698