2010-10-03 23:04:50 +02:00
|
|
|
// Copyright (c) 2010 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.
|
|
|
|
|
|
|
|
#include "include/cef.h"
|
2010-10-24 18:41:21 +02:00
|
|
|
#include "include/cef_wrapper.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "cefclient.h"
|
|
|
|
#include "binding_test.h"
|
2010-10-16 21:10:11 +02:00
|
|
|
#include "download_handler.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include "string_util.h"
|
2010-10-16 21:10:11 +02:00
|
|
|
#include "util.h"
|
2010-10-03 23:04:50 +02:00
|
|
|
#include <sstream>
|
2010-12-07 02:30:26 +01:00
|
|
|
#include <stdio.h>
|
2010-10-28 22:38:27 +02:00
|
|
|
#include <string>
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
// ClientHandler::ClientDownloadListener implementation
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void ClientHandler::ClientDownloadListener::NotifyDownloadComplete(
|
2010-11-22 18:49:46 +01:00
|
|
|
const CefString& fileName)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
handler_->SetLastDownloadFile(fileName);
|
|
|
|
handler_->SendNotification(NOTIFY_DOWNLOAD_COMPLETE);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void ClientHandler::ClientDownloadListener::NotifyDownloadError(
|
2010-11-22 18:49:46 +01:00
|
|
|
const CefString& fileName)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
handler_->SetLastDownloadFile(fileName);
|
|
|
|
handler_->SendNotification(NOTIFY_DOWNLOAD_ERROR);
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
// ClientHandler implementation
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
ClientHandler::ClientHandler()
|
|
|
|
: m_MainHwnd(NULL), m_BrowserHwnd(NULL), m_EditHwnd(NULL), m_bLoading(false),
|
|
|
|
m_bCanGoBack(false), m_bCanGoForward(false),
|
|
|
|
ALLOW_THIS_IN_INITIALIZER_LIST(
|
|
|
|
m_DownloadListener(new ClientDownloadListener(this)))
|
|
|
|
{
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
ClientHandler::~ClientHandler()
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleAfterCreated(
|
|
|
|
CefRefPtr<CefBrowser> browser)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
Lock();
|
|
|
|
if(!browser->IsPopup())
|
2010-10-16 21:10:11 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
// We need to keep the main child window, but not popup windows
|
|
|
|
m_Browser = browser;
|
|
|
|
m_BrowserHwnd = browser->GetWindowHandle();
|
|
|
|
}
|
|
|
|
Unlock();
|
|
|
|
return RV_CONTINUE;
|
|
|
|
}
|
2010-10-16 21:10:11 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleLoadStart(CefRefPtr<CefBrowser> browser,
|
2011-01-12 00:46:14 +01:00
|
|
|
CefRefPtr<CefFrame> frame, bool isMainContent)
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
|
|
|
if(!browser->IsPopup() && !frame.get())
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
Lock();
|
|
|
|
// We've just started loading a page
|
|
|
|
m_bLoading = true;
|
2010-10-03 23:04:50 +02:00
|
|
|
m_bCanGoBack = false;
|
|
|
|
m_bCanGoForward = false;
|
2010-10-28 22:38:27 +02:00
|
|
|
Unlock();
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
2010-10-28 22:38:27 +02:00
|
|
|
return RV_CONTINUE;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleLoadEnd(CefRefPtr<CefBrowser> browser,
|
2011-01-12 00:46:14 +01:00
|
|
|
CefRefPtr<CefFrame> frame, bool isMainContent)
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
|
|
|
if(!browser->IsPopup() && !frame.get())
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
|
|
|
Lock();
|
2010-10-28 22:38:27 +02:00
|
|
|
// We've just finished loading a page
|
|
|
|
m_bLoading = false;
|
|
|
|
m_bCanGoBack = browser->CanGoBack();
|
|
|
|
m_bCanGoForward = browser->CanGoForward();
|
2010-10-03 23:04:50 +02:00
|
|
|
Unlock();
|
|
|
|
}
|
2010-10-28 22:38:27 +02:00
|
|
|
return RV_CONTINUE;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleLoadError(CefRefPtr<CefBrowser> browser,
|
|
|
|
CefRefPtr<CefFrame> frame, ErrorCode errorCode,
|
2010-11-22 18:49:46 +01:00
|
|
|
const CefString& failedUrl, CefString& errorText)
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
|
|
|
if(errorCode == ERR_CACHE_MISS)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
// Usually caused by navigating to a page with POST data via back or
|
|
|
|
// forward buttons.
|
2010-11-22 18:49:46 +01:00
|
|
|
errorText = "<html><head><title>Expired Form Data</title></head>"
|
|
|
|
"<body><h1>Expired Form Data</h1>"
|
|
|
|
"<h2>Your form request has expired. "
|
|
|
|
"Click reload to re-submit the form data.</h2></body>"
|
|
|
|
"</html>";
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
2010-10-28 22:38:27 +02:00
|
|
|
else
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
// All other messages.
|
2010-11-22 18:49:46 +01:00
|
|
|
std::stringstream ss;
|
|
|
|
ss << "<html><head><title>Load Failed</title></head>"
|
|
|
|
"<body><h1>Load Failed</h1>"
|
|
|
|
"<h2>Load of URL " << std::string(failedUrl) <<
|
|
|
|
" failed with error code " << static_cast<int>(errorCode) <<
|
|
|
|
".</h2></body>"
|
|
|
|
"</html>";
|
2010-10-28 22:38:27 +02:00
|
|
|
errorText = ss.str();
|
|
|
|
}
|
|
|
|
return RV_HANDLED;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleDownloadResponse(
|
2010-11-22 18:49:46 +01:00
|
|
|
CefRefPtr<CefBrowser> browser, const CefString& mimeType,
|
|
|
|
const CefString& fileName, int64 contentLength,
|
2010-10-28 22:38:27 +02:00
|
|
|
CefRefPtr<CefDownloadHandler>& handler)
|
|
|
|
{
|
|
|
|
// Create the handler for the file download.
|
|
|
|
handler = CreateDownloadHandler(m_DownloadListener, fileName);
|
|
|
|
return RV_CONTINUE;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandlePrintHeaderFooter(
|
|
|
|
CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame,
|
2010-11-22 18:49:46 +01:00
|
|
|
CefPrintInfo& printInfo, const CefString& url, const CefString& title,
|
|
|
|
int currentPage, int maxPages, CefString& topLeft,
|
|
|
|
CefString& topCenter, CefString& topRight, CefString& bottomLeft,
|
|
|
|
CefString& bottomCenter, CefString& bottomRight)
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
|
|
|
// Place the page title at top left
|
|
|
|
topLeft = title;
|
|
|
|
// Place the page URL at top right
|
|
|
|
topRight = url;
|
|
|
|
|
|
|
|
// Place "Page X of Y" at bottom center
|
2010-11-22 18:49:46 +01:00
|
|
|
std::stringstream strstream;
|
|
|
|
strstream << "Page " << currentPage << " of " << maxPages;
|
2010-10-28 22:38:27 +02:00
|
|
|
bottomCenter = strstream.str();
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
return RV_CONTINUE;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleJSBinding(CefRefPtr<CefBrowser> browser,
|
|
|
|
CefRefPtr<CefFrame> frame, CefRefPtr<CefV8Value> object)
|
|
|
|
{
|
|
|
|
// Add the V8 bindings.
|
|
|
|
InitBindingTest(browser, frame, object);
|
|
|
|
|
|
|
|
return RV_HANDLED;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleBeforeWindowClose(
|
|
|
|
CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
|
|
|
if(m_BrowserHwnd == browser->GetWindowHandle())
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
// Free the browser pointer so that the browser can be destroyed
|
|
|
|
m_Browser = NULL;
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
2010-10-28 22:38:27 +02:00
|
|
|
return RV_CONTINUE;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefHandler::RetVal ClientHandler::HandleConsoleMessage(
|
2010-11-22 18:49:46 +01:00
|
|
|
CefRefPtr<CefBrowser> browser, const CefString& message,
|
|
|
|
const CefString& source, int line)
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
|
|
|
Lock();
|
|
|
|
bool first_message = m_LogFile.empty();
|
|
|
|
if(first_message) {
|
2010-11-22 18:49:46 +01:00
|
|
|
std::stringstream ss;
|
2010-11-15 16:39:56 +01:00
|
|
|
ss << AppGetWorkingDirectory();
|
|
|
|
#ifdef _WIN32
|
2010-11-22 18:49:46 +01:00
|
|
|
ss << "\\";
|
2010-11-15 16:39:56 +01:00
|
|
|
#else
|
2010-11-22 18:49:46 +01:00
|
|
|
ss << "/";
|
2010-11-15 16:39:56 +01:00
|
|
|
#endif
|
2010-11-22 18:49:46 +01:00
|
|
|
ss << "console.log";
|
2010-10-28 22:38:27 +02:00
|
|
|
m_LogFile = ss.str();
|
|
|
|
}
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string logFile = m_LogFile;
|
2010-10-28 22:38:27 +02:00
|
|
|
Unlock();
|
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
FILE* file = fopen(logFile.c_str(), "a");
|
2010-10-28 22:38:27 +02:00
|
|
|
if(file) {
|
2010-11-22 18:49:46 +01:00
|
|
|
std::stringstream ss;
|
|
|
|
ss << "Message: " << std::string(message) << "\r\nSource: " <<
|
|
|
|
std::string(source) << "\r\nLine: " << line <<
|
|
|
|
"\r\n-----------------------\r\n";
|
|
|
|
fputs(ss.str().c_str(), file);
|
2010-10-28 22:38:27 +02:00
|
|
|
fclose(file);
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
if(first_message)
|
|
|
|
SendNotification(NOTIFY_CONSOLE_MESSAGE);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
return RV_HANDLED;
|
|
|
|
}
|
2010-10-16 21:10:11 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void ClientHandler::GetNavState(bool &isLoading, bool &canGoBack,
|
|
|
|
bool &canGoForward)
|
|
|
|
{
|
|
|
|
Lock();
|
|
|
|
isLoading = m_bLoading;
|
|
|
|
canGoBack = m_bCanGoBack;
|
|
|
|
canGoForward = m_bCanGoForward;
|
|
|
|
Unlock();
|
|
|
|
}
|
2010-10-16 21:10:11 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void ClientHandler::SetMainHwnd(CefWindowHandle hwnd)
|
|
|
|
{
|
|
|
|
Lock();
|
|
|
|
m_MainHwnd = hwnd;
|
|
|
|
Unlock();
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void ClientHandler::SetEditHwnd(CefWindowHandle hwnd)
|
|
|
|
{
|
|
|
|
Lock();
|
|
|
|
m_EditHwnd = hwnd;
|
|
|
|
Unlock();
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string ClientHandler::GetLogFile()
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
|
|
|
Lock();
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string str = m_LogFile;
|
2010-10-28 22:38:27 +02:00
|
|
|
Unlock();
|
|
|
|
return str;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
void ClientHandler::SetLastDownloadFile(const std::string& fileName)
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
|
|
|
Lock();
|
|
|
|
m_LastDownloadFile = fileName;
|
|
|
|
Unlock();
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string ClientHandler::GetLastDownloadFile()
|
2010-10-28 22:38:27 +02:00
|
|
|
{
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string str;
|
2010-10-28 22:38:27 +02:00
|
|
|
Lock();
|
|
|
|
str = m_LastDownloadFile;
|
|
|
|
Unlock();
|
|
|
|
return str;
|
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-16 21:10:11 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
// Global functions
|
2010-10-03 23:04:50 +02:00
|
|
|
|
|
|
|
CefRefPtr<ClientHandler> g_handler;
|
|
|
|
|
|
|
|
CefRefPtr<CefBrowser> AppGetBrowser()
|
|
|
|
{
|
|
|
|
if(!g_handler.get())
|
|
|
|
return NULL;
|
|
|
|
return g_handler->GetBrowser();
|
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
CefWindowHandle AppGetMainHwnd()
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
|
|
|
if(!g_handler.get())
|
|
|
|
return NULL;
|
|
|
|
return g_handler->GetMainHwnd();
|
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void RunGetSourceTest(CefRefPtr<CefFrame> frame)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
// Retrieve the current page source and display.
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string source = frame->GetSource();
|
|
|
|
source = StringReplace(source, "<", "<");
|
|
|
|
source = StringReplace(source, ">", ">");
|
|
|
|
std::stringstream ss;
|
|
|
|
ss << "<html><body>Source:" << "<pre>" << source
|
|
|
|
<< "</pre></body></html>";
|
|
|
|
frame->LoadString(ss.str(), "http://tests/getsource");
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void RunGetTextTest(CefRefPtr<CefFrame> frame)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
// Retrieve the current page text and display.
|
2010-11-22 18:49:46 +01:00
|
|
|
std::string text = frame->GetText();
|
|
|
|
text = StringReplace(text, "<", "<");
|
|
|
|
text = StringReplace(text, ">", ">");
|
|
|
|
std::stringstream ss;
|
|
|
|
ss << "<html><body>Text:" << "<pre>" << text
|
|
|
|
<< "</pre></body></html>";
|
|
|
|
frame->LoadString(ss.str(), "http://tests/gettext");
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void RunRequestTest(CefRefPtr<CefBrowser> browser)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
// Create a new request
|
|
|
|
CefRefPtr<CefRequest> request(CefRequest::CreateRequest());
|
|
|
|
|
|
|
|
// Set the request URL
|
2010-11-22 18:49:46 +01:00
|
|
|
request->SetURL("http://tests/request");
|
2010-10-28 22:38:27 +02:00
|
|
|
|
|
|
|
// Add post data to the request. The correct method and content-
|
|
|
|
// type headers will be set by CEF.
|
|
|
|
CefRefPtr<CefPostDataElement> postDataElement(
|
|
|
|
CefPostDataElement::CreatePostDataElement());
|
|
|
|
std::string data = "arg1=val1&arg2=val2";
|
|
|
|
postDataElement->SetToBytes(data.length(), data.c_str());
|
|
|
|
CefRefPtr<CefPostData> postData(CefPostData::CreatePostData());
|
|
|
|
postData->AddElement(postDataElement);
|
|
|
|
request->SetPostData(postData);
|
|
|
|
|
|
|
|
// Add a custom header
|
|
|
|
CefRequest::HeaderMap headerMap;
|
|
|
|
headerMap.insert(
|
2010-11-22 18:49:46 +01:00
|
|
|
std::make_pair("X-My-Header", "My Header Value"));
|
2010-10-28 22:38:27 +02:00
|
|
|
request->SetHeaderMap(headerMap);
|
|
|
|
|
|
|
|
// Load the request
|
|
|
|
browser->GetMainFrame()->LoadRequest(request);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void RunJavaScriptExecuteTest(CefRefPtr<CefBrowser> browser)
|
2010-10-03 23:04:50 +02:00
|
|
|
{
|
2010-10-28 22:38:27 +02:00
|
|
|
browser->GetMainFrame()->ExecuteJavaScript(
|
2010-11-22 18:49:46 +01:00
|
|
|
"alert('JavaScript execute works!');", "about:blank", 0);
|
2010-10-28 22:38:27 +02:00
|
|
|
}
|
2010-10-03 23:04:50 +02:00
|
|
|
|
2010-10-28 22:38:27 +02:00
|
|
|
void RunPopupTest(CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
|
|
|
browser->GetMainFrame()->ExecuteJavaScript(
|
2010-11-22 18:49:46 +01:00
|
|
|
"window.open('http://www.google.com');", "about:blank", 0);
|
2010-10-03 23:04:50 +02:00
|
|
|
}
|
2010-11-17 18:28:32 +01:00
|
|
|
|
|
|
|
void RunLocalStorageTest(CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
2010-11-22 18:49:46 +01:00
|
|
|
browser->GetMainFrame()->LoadURL("http://tests/localstorage");
|
2010-11-17 18:28:32 +01:00
|
|
|
}
|
2010-12-16 22:54:42 +01:00
|
|
|
|
|
|
|
void RunAccelerated2DCanvasTest(CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
|
|
|
browser->GetMainFrame()->LoadURL(
|
|
|
|
"http://mudcu.be/labs/JS1k/BreathingGalaxies.html");
|
|
|
|
}
|
|
|
|
|
|
|
|
void RunAcceleratedLayersTest(CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
|
|
|
browser->GetMainFrame()->LoadURL(
|
|
|
|
"http://webkit.org/blog-files/3d-transforms/poster-circle.html");
|
|
|
|
}
|
|
|
|
|
|
|
|
void RunWebGLTest(CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
|
|
|
browser->GetMainFrame()->LoadURL(
|
|
|
|
"http://webglsamples.googlecode.com/hg/field/field.html");
|
|
|
|
}
|
|
|
|
|
|
|
|
void RunHTML5VideoTest(CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
|
|
|
browser->GetMainFrame()->LoadURL(
|
|
|
|
"http://www.youtube.com/watch?v=siOHh0uzcuY&html5=True");
|
|
|
|
}
|
2011-01-12 00:46:14 +01:00
|
|
|
|
|
|
|
void RunXMLHTTPRequestTest(CefRefPtr<CefBrowser> browser)
|
|
|
|
{
|
|
|
|
browser->GetMainFrame()->LoadURL("http://tests/xmlhttprequest");
|
|
|
|
}
|