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.
|
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#ifndef CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_
|
|
|
|
#define CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_
|
|
|
|
#pragma once
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-12-23 18:36:30 +01:00
|
|
|
#include "include/cef_base.h"
|
|
|
|
|
|
|
|
class CefStreamReader;
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2011-05-20 16:42:25 +02:00
|
|
|
#if defined(OS_WIN)
|
2010-10-28 22:38:27 +02:00
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#include "cefclient/resource.h"
|
2011-09-20 22:41:54 +02:00
|
|
|
|
2010-10-03 23:04:50 +02:00
|
|
|
// Load a resource of type BINARY
|
|
|
|
bool LoadBinaryResource(int binaryId, DWORD &dwSize, LPBYTE &pBytes);
|
2011-03-04 03:14:04 +01:00
|
|
|
CefRefPtr<CefStreamReader> GetBinaryResourceReader(int binaryId);
|
2010-10-28 22:38:27 +02:00
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#elif defined(OS_MACOSX) || defined(OS_POSIX)
|
|
|
|
|
|
|
|
#include <string> // NOLINT(build/include_order)
|
2011-03-04 03:14:04 +01:00
|
|
|
|
|
|
|
// Load the resource with the specified name.
|
|
|
|
bool LoadBinaryResource(const char* resource_name, std::string& resource_data);
|
|
|
|
CefRefPtr<CefStreamReader> GetBinaryResourceReader(const char* resource_name);
|
|
|
|
|
|
|
|
#endif
|
2010-10-28 22:38:27 +02:00
|
|
|
|
2012-01-10 00:46:23 +01:00
|
|
|
#endif // CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_
|