mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 09:37:37 +01:00
5533ceb06b
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1171 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
24 lines
752 B
C++
24 lines
752 B
C++
// Copyright (c) 2013 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 CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_
|
|
#define CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "include/cef_stream.h"
|
|
|
|
#if defined(OS_POSIX)
|
|
// Returns the directory containing resource files.
|
|
bool GetResourceDir(std::string& dir);
|
|
#endif
|
|
|
|
// Retrieve a resource as a string.
|
|
bool LoadBinaryResource(const char* resource_name, std::string& resource_data);
|
|
|
|
// Retrieve a resource as a steam reader.
|
|
CefRefPtr<CefStreamReader> GetBinaryResourceReader(const char* resource_name);
|
|
|
|
#endif // CEF_TESTS_CEFCLIENT_RESOURCE_UTIL_H_
|