This source file includes following definitions.
- CreateSyncWebSocket
- CreateSyncWebSocketFactory
#include "chrome/test/chromedriver/net/sync_websocket_factory.h"
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "chrome/test/chromedriver/net/sync_websocket_impl.h"
#include "chrome/test/chromedriver/net/url_request_context_getter.h"
namespace {
scoped_ptr<SyncWebSocket> CreateSyncWebSocket(
scoped_refptr<URLRequestContextGetter> context_getter) {
return scoped_ptr<SyncWebSocket>(new SyncWebSocketImpl(context_getter.get()));
}
}
SyncWebSocketFactory CreateSyncWebSocketFactory(
URLRequestContextGetter* getter) {
return base::Bind(&CreateSyncWebSocket, make_scoped_refptr(getter));
}