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

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

Issue 2464663002: chrome: move networking_private_crypto from common to browser (Closed)
Patch Set: chrome/test Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMON_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYPT O_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYP TO_H_
6 #define CHROME_COMMON_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYPT O_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CRYP TO_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 14
15 namespace networking_private_crypto { 15 namespace networking_private_crypto {
16 16
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // PKCS8 PEM-encoded private key. |encrypted_data| is data encrypted with 51 // PKCS8 PEM-encoded private key. |encrypted_data| is data encrypted with
52 // EncryptByteString. Used in NetworkingPrivateCryptoTest::EncryptString test. 52 // EncryptByteString. Used in NetworkingPrivateCryptoTest::EncryptString test.
53 // Returns true on success, storing the decrypted result in 53 // Returns true on success, storing the decrypted result in
54 // |decrypted_output|. 54 // |decrypted_output|.
55 bool DecryptByteString(const std::string& private_key_pem, 55 bool DecryptByteString(const std::string& private_key_pem,
56 const std::vector<uint8_t>& encrypted_data, 56 const std::vector<uint8_t>& encrypted_data,
57 std::string* decrypted_output); 57 std::string* decrypted_output);
58 58
59 } // namespace networking_private_crypto 59 } // namespace networking_private_crypto
60 60
61 #endif // CHROME_COMMON_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_CR YPTO_H_ 61 #endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_NETWORKING_PRIVATE_C RYPTO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698