Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / chromedriver / net / sync_websocket_factory.cc
blob77c31f04c8b2b81661028c35dd36c79d9a213285
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/test/chromedriver/net/sync_websocket_factory.h"
7 #include "base/bind.h"
8 #include "base/memory/ref_counted.h"
9 #include "chrome/test/chromedriver/net/sync_websocket_impl.h"
10 #include "chrome/test/chromedriver/net/url_request_context_getter.h"
12 namespace {
14 scoped_ptr<SyncWebSocket> CreateSyncWebSocket(
15 scoped_refptr<URLRequestContextGetter> context_getter) {
16 return scoped_ptr<SyncWebSocket>(new SyncWebSocketImpl(context_getter.get()));
19 } // namespace
21 SyncWebSocketFactory CreateSyncWebSocketFactory(
22 URLRequestContextGetter* getter) {
23 return base::Bind(&CreateSyncWebSocket, make_scoped_refptr(getter));