1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef CONTENT_PUBLIC_BROWSER_CERTIFICATE_REQUEST_RESULT_TYPE_H_ 6 #define CONTENT_PUBLIC_BROWSER_CERTIFICATE_REQUEST_RESULT_TYPE_H_ 7 8 namespace content { 9 10 // Used to specify synchronous result codes when processing a certificate 11 // request. 12 enum CertificateRequestResultType { 13 // Continue processing the request. Result will be returned asynchronously. 14 CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, 15 16 // Cancels the request synchronously using a net::ERR_ABORTED. 17 CERTIFICATE_REQUEST_RESULT_TYPE_CANCEL, 18 19 // Denies the request synchronously using the certificate error code that was 20 // encountered. 21 CERTIFICATE_REQUEST_RESULT_TYPE_DENY, 22 }; 23 24 } // namespace content 25 26 #endif // CONTENT_PUBLIC_BROWSER_CERTIFICATE_REQUEST_RESULT_TYPE_H_ 27