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

Side by Side Diff: chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_api.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_ENTERPRISE_PLATFO RM_KEYS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_ENTERPRISE_PLATFO RM_KEYS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_ENTERPRISE_PLATFO RM_KEYS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_ENTERPRISE_PLATFO RM_KEYS_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/extensions/chrome_extension_function.h" 14 #include "chrome/browser/extensions/chrome_extension_function.h"
15 15
16 namespace net { 16 namespace net {
17 class X509Certificate; 17 class X509Certificate;
18 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; 18 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
19 } 19 }
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 class EnterprisePlatformKeysInternalGenerateKeyFunction 23 class EnterprisePlatformKeysInternalGenerateKeyFunction
24 : public ChromeUIThreadExtensionFunction { 24 : public ChromeUIThreadExtensionFunction {
25 private: 25 private:
26 virtual ~EnterprisePlatformKeysInternalGenerateKeyFunction(); 26 virtual ~EnterprisePlatformKeysInternalGenerateKeyFunction();
27 virtual ResponseAction Run() OVERRIDE; 27 virtual ResponseAction Run() override;
28 28
29 // Called when the key was generated. If an error occurred, |public_key_der| 29 // Called when the key was generated. If an error occurred, |public_key_der|
30 // will be empty and instead |error_message| be set. 30 // will be empty and instead |error_message| be set.
31 void OnGeneratedKey(const std::string& public_key_der, 31 void OnGeneratedKey(const std::string& public_key_der,
32 const std::string& error_message); 32 const std::string& error_message);
33 33
34 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeysInternal.generateKey", 34 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeysInternal.generateKey",
35 ENTERPRISE_PLATFORMKEYSINTERNAL_GENERATEKEY); 35 ENTERPRISE_PLATFORMKEYSINTERNAL_GENERATEKEY);
36 }; 36 };
37 37
38 class EnterprisePlatformKeysInternalSignFunction 38 class EnterprisePlatformKeysInternalSignFunction
39 : public ChromeUIThreadExtensionFunction { 39 : public ChromeUIThreadExtensionFunction {
40 private: 40 private:
41 virtual ~EnterprisePlatformKeysInternalSignFunction(); 41 virtual ~EnterprisePlatformKeysInternalSignFunction();
42 virtual ResponseAction Run() OVERRIDE; 42 virtual ResponseAction Run() override;
43 43
44 // Called when the signature was generated. If an error occurred, 44 // Called when the signature was generated. If an error occurred,
45 // |signature| will be empty and instead |error_message| be set. 45 // |signature| will be empty and instead |error_message| be set.
46 void OnSigned(const std::string& signature, const std::string& error_message); 46 void OnSigned(const std::string& signature, const std::string& error_message);
47 47
48 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeysInternal.sign", 48 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeysInternal.sign",
49 ENTERPRISE_PLATFORMKEYSINTERNAL_SIGN); 49 ENTERPRISE_PLATFORMKEYSINTERNAL_SIGN);
50 }; 50 };
51 51
52 class EnterprisePlatformKeysGetCertificatesFunction 52 class EnterprisePlatformKeysGetCertificatesFunction
53 : public ChromeUIThreadExtensionFunction { 53 : public ChromeUIThreadExtensionFunction {
54 private: 54 private:
55 virtual ~EnterprisePlatformKeysGetCertificatesFunction(); 55 virtual ~EnterprisePlatformKeysGetCertificatesFunction();
56 virtual ResponseAction Run() OVERRIDE; 56 virtual ResponseAction Run() override;
57 57
58 // Called when the list of certificates was determined. If an error occurred, 58 // Called when the list of certificates was determined. If an error occurred,
59 // |certs| will be NULL and instead |error_message| be set. 59 // |certs| will be NULL and instead |error_message| be set.
60 void OnGotCertificates(scoped_ptr<net::CertificateList> certs, 60 void OnGotCertificates(scoped_ptr<net::CertificateList> certs,
61 const std::string& error_message); 61 const std::string& error_message);
62 62
63 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeys.getCertificates", 63 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeys.getCertificates",
64 ENTERPRISE_PLATFORMKEYS_GETCERTIFICATES); 64 ENTERPRISE_PLATFORMKEYS_GETCERTIFICATES);
65 }; 65 };
66 66
67 class EnterprisePlatformKeysImportCertificateFunction 67 class EnterprisePlatformKeysImportCertificateFunction
68 : public ChromeUIThreadExtensionFunction { 68 : public ChromeUIThreadExtensionFunction {
69 private: 69 private:
70 virtual ~EnterprisePlatformKeysImportCertificateFunction(); 70 virtual ~EnterprisePlatformKeysImportCertificateFunction();
71 virtual ResponseAction Run() OVERRIDE; 71 virtual ResponseAction Run() override;
72 72
73 // Called when the certificate was imported. Only if an error occurred, 73 // Called when the certificate was imported. Only if an error occurred,
74 // |error_message| will be set. 74 // |error_message| will be set.
75 void OnImportedCertificate(const std::string& error_message); 75 void OnImportedCertificate(const std::string& error_message);
76 76
77 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeys.importCertificate", 77 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeys.importCertificate",
78 ENTERPRISE_PLATFORMKEYS_IMPORTCERTIFICATE); 78 ENTERPRISE_PLATFORMKEYS_IMPORTCERTIFICATE);
79 }; 79 };
80 80
81 class EnterprisePlatformKeysRemoveCertificateFunction 81 class EnterprisePlatformKeysRemoveCertificateFunction
82 : public ChromeUIThreadExtensionFunction { 82 : public ChromeUIThreadExtensionFunction {
83 private: 83 private:
84 virtual ~EnterprisePlatformKeysRemoveCertificateFunction(); 84 virtual ~EnterprisePlatformKeysRemoveCertificateFunction();
85 virtual ResponseAction Run() OVERRIDE; 85 virtual ResponseAction Run() override;
86 86
87 // Called when the certificate was removed. Only if an error occurred, 87 // Called when the certificate was removed. Only if an error occurred,
88 // |error_message| will be set. 88 // |error_message| will be set.
89 void OnRemovedCertificate(const std::string& error_message); 89 void OnRemovedCertificate(const std::string& error_message);
90 90
91 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeys.removeCertificate", 91 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeys.removeCertificate",
92 ENTERPRISE_PLATFORMKEYS_REMOVECERTIFICATE); 92 ENTERPRISE_PLATFORMKEYS_REMOVECERTIFICATE);
93 }; 93 };
94 94
95 class EnterprisePlatformKeysInternalGetTokensFunction 95 class EnterprisePlatformKeysInternalGetTokensFunction
96 : public ChromeUIThreadExtensionFunction { 96 : public ChromeUIThreadExtensionFunction {
97 private: 97 private:
98 virtual ~EnterprisePlatformKeysInternalGetTokensFunction(); 98 virtual ~EnterprisePlatformKeysInternalGetTokensFunction();
99 virtual ResponseAction Run() OVERRIDE; 99 virtual ResponseAction Run() override;
100 100
101 // Called when the list of tokens was determined. If an error occurred, 101 // Called when the list of tokens was determined. If an error occurred,
102 // |token_ids| will be NULL and instead |error_message| be set. 102 // |token_ids| will be NULL and instead |error_message| be set.
103 void OnGotTokens(scoped_ptr<std::vector<std::string> > token_ids, 103 void OnGotTokens(scoped_ptr<std::vector<std::string> > token_ids,
104 const std::string& error_message); 104 const std::string& error_message);
105 105
106 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeysInternal.getTokens", 106 DECLARE_EXTENSION_FUNCTION("enterprise.platformKeysInternal.getTokens",
107 ENTERPRISE_PLATFORMKEYSINTERNAL_GETTOKENS); 107 ENTERPRISE_PLATFORMKEYSINTERNAL_GETTOKENS);
108 }; 108 };
109 109
110 } // namespace extensions 110 } // namespace extensions
111 111
112 #endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_ENTERPRISE_PLA TFORM_KEYS_API_H_ 112 #endif // CHROME_BROWSER_EXTENSIONS_API_ENTERPRISE_PLATFORM_KEYS_ENTERPRISE_PLA TFORM_KEYS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698