-// Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved.
+// Copyright (c) 2017 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// more information.
//
-#ifndef CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_HANDLER_CAPI_H_
-#define CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_HANDLER_CAPI_H_
+#ifndef CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_
+#define CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_
#pragma once
#include "include/capi/cef_base_capi.h"
-#include "include/capi/cef_cookie_capi.h"
#ifdef __cplusplus
extern "C" {
///
-// Implement this structure to provide handler implementations.
+// Callback structure used for asynchronous continuation of authentication
+// requests.
///
-typedef struct _cef_request_context_handler_t {
+typedef struct _cef_auth_callback_t {
///
// Base structure.
///
- cef_base_t base;
+ cef_base_ref_counted_t base;
///
- // Called on the IO thread to retrieve the cookie manager. The global cookie
- // manager will be used if this function returns NULL.
+ // Continue the authentication request.
///
- struct _cef_cookie_manager_t* (CEF_CALLBACK *get_cookie_manager)(
- struct _cef_request_context_handler_t* self);
-} cef_request_context_handler_t;
+ void (CEF_CALLBACK *cont)(struct _cef_auth_callback_t* self,
+ const cef_string_t* username, const cef_string_t* password);
+
+ ///
+ // Cancel the authentication request.
+ ///
+ void (CEF_CALLBACK *cancel)(struct _cef_auth_callback_t* self);
+} cef_auth_callback_t;
#ifdef __cplusplus
}
#endif
-#endif // CEF_INCLUDE_CAPI_CEF_REQUEST_CONTEXT_HANDLER_CAPI_H_
+#endif // CEF_INCLUDE_CAPI_CEF_AUTH_CALLBACK_CAPI_H_