1 // Copyright 2020 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 SERVICES_NETWORK_PUBLIC_CPP_SESSION_COOKIE_DELETE_PREDICATE_H_ 6 #define SERVICES_NETWORK_PUBLIC_CPP_SESSION_COOKIE_DELETE_PREDICATE_H_ 7 8 #include <string> 9 10 #include "base/callback_forward.h" 11 12 namespace network { 13 // A DeleteCookiePredicate callback function decides if the cookie associated 14 // with the domain and is_https status should be deleted on exit, and is used 15 // when creating a cookie storage policy. It has two parameters, the first one 16 // is the domain of a cookie and the second one is a bool which represents 17 // whether the cookie is secure as parameters. 18 using DeleteCookiePredicate = 19 base::RepeatingCallback<bool(const std::string&, bool)>; 20 21 } // namespace network 22 23 #endif // SERVICES_NETWORK_PUBLIC_CPP_SESSION_COOKIE_DELETE_PREDICATE_H_ 24