Changes to cefclient in preparation for porting.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@130 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2010-10-28 20:38:27 +00:00
parent fedc693be1
commit 9e3128fb42
22 changed files with 1439 additions and 1221 deletions

View File

@ -6,7 +6,10 @@
#include "scheme_test.h"
#include "string_util.h"
#include "resource_util.h"
#ifdef _WIN32
#include "resource.h"
#endif // _WIN32
// Implementation of the schema handler for client:// requests.
@ -58,6 +61,7 @@ public:
// Set the resulting mime type
mime_type = L"text/html";
}
#ifdef _WIN32
else if(wcsstr(url.c_str(), L"client.gif") != NULL) {
// Load the response image
if(LoadBinaryResource(IDS_LOGO, size_, bytes_)) {
@ -66,6 +70,7 @@ public:
mime_type = L"image/jpg";
}
}
#endif // _WIN32
// Set the resulting response length
*response_length = size_;