• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_DLL_TRANSFER_UTIL_H_
6 #define CEF_LIBCEF_DLL_TRANSFER_UTIL_H_
7 #pragma once
8 
9 #include <map>
10 #include <vector>
11 
12 #include "include/internal/cef_string_list.h"
13 #include "include/internal/cef_string_map.h"
14 #include "include/internal/cef_string_multimap.h"
15 
16 // Copy contents from one list type to another.
17 using StringList = std::vector<CefString>;
18 void transfer_string_list_contents(cef_string_list_t fromList,
19                                    StringList& toList);
20 void transfer_string_list_contents(const StringList& fromList,
21                                    cef_string_list_t toList);
22 
23 // Copy contents from one map type to another.
24 using StringMap = std::map<CefString, CefString>;
25 void transfer_string_map_contents(cef_string_map_t fromMap, StringMap& toMap);
26 void transfer_string_map_contents(const StringMap& fromMap,
27                                   cef_string_map_t toMap);
28 
29 // Copy contents from one map type to another.
30 using StringMultimap = std::multimap<CefString, CefString>;
31 void transfer_string_multimap_contents(cef_string_multimap_t fromMap,
32                                        StringMultimap& toMap);
33 void transfer_string_multimap_contents(const StringMultimap& fromMap,
34                                        cef_string_multimap_t toMap);
35 
36 #endif  // CEF_LIBCEF_DLL_TRANSFER_UTIL_H_
37