2010-10-03 23:04:50 +02:00
|
|
|
// Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef _TRANSFER_UTIL_H
|
|
|
|
#define _TRANSFER_UTIL_H
|
|
|
|
|
2011-05-20 22:52:47 +02:00
|
|
|
#include "include/internal/cef_string_list.h"
|
|
|
|
#include "include/internal/cef_string_map.h"
|
2011-10-28 23:31:26 +02:00
|
|
|
#include "include/internal/cef_string_multimap.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include <map>
|
2010-11-22 18:49:46 +01:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
// Copy contents from one list type to another.
|
|
|
|
typedef std::vector<CefString> StringList;
|
|
|
|
void transfer_string_list_contents(cef_string_list_t fromList,
|
|
|
|
StringList& toList);
|
|
|
|
void transfer_string_list_contents(const StringList& fromList,
|
|
|
|
cef_string_list_t toList);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
// Copy contents from one map type to another.
|
2010-11-22 18:49:46 +01:00
|
|
|
typedef std::map<CefString, CefString> StringMap;
|
2010-10-03 23:04:50 +02:00
|
|
|
void transfer_string_map_contents(cef_string_map_t fromMap,
|
2010-11-22 18:49:46 +01:00
|
|
|
StringMap& toMap);
|
|
|
|
void transfer_string_map_contents(const StringMap& fromMap,
|
2010-10-03 23:04:50 +02:00
|
|
|
cef_string_map_t toMap);
|
|
|
|
|
2011-10-28 23:31:26 +02:00
|
|
|
// Copy contents from one map type to another.
|
|
|
|
typedef std::multimap<CefString, CefString> StringMultimap;
|
|
|
|
void transfer_string_multimap_contents(cef_string_multimap_t fromMap,
|
|
|
|
StringMultimap& toMap);
|
|
|
|
void transfer_string_multimap_contents(const StringMultimap& fromMap,
|
|
|
|
cef_string_multimap_t toMap);
|
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
#endif // _TRANSFER_UTIL_H
|