1 // Copyright 2020 The Chromium Embedded Framework Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be found 3 // in the LICENSE file. 4 5 #ifndef CEF_LIBCEF_BROWSER_NET_THROTTLE_HANDLER_H_ 6 #define CEF_LIBCEF_BROWSER_NET_THROTTLE_HANDLER_H_ 7 #pragma once 8 9 #include <memory> 10 #include <vector> 11 12 namespace content { 13 class NavigationHandle; 14 class NavigationThrottle; 15 } // namespace content 16 17 namespace throttle { 18 19 using NavigationThrottleList = 20 std::vector<std::unique_ptr<content::NavigationThrottle>>; 21 22 void CreateThrottlesForNavigation(content::NavigationHandle* navigation_handle, 23 NavigationThrottleList& throttles); 24 25 } // namespace throttle 26 27 #endif // CEF_LIBCEF_BROWSER_NET_THROTTLE_HANDLER_H_ 28