Add GCMChannelStatusSyncer to schedule requests and enable/disable GCM
[chromium-blink-merge.git] / chrome / browser / local_discovery / privet_http_asynchronous_factory.cc
blob786c98be16cbcd2f96c4930a68f47d58d2925318
1 // Copyright 2013 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/browser/local_discovery/privet_http_asynchronous_factory.h"
7 #if defined(OS_MACOSX)
8 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory_mac.h"
9 #else
10 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h"
11 #endif
13 namespace local_discovery {
15 // static
16 scoped_ptr<PrivetHTTPAsynchronousFactory>
17 PrivetHTTPAsynchronousFactory::CreateInstance(
18 ServiceDiscoveryClient* service_discovery_client,
19 net::URLRequestContextGetter* request_context) {
20 #if defined(OS_MACOSX)
21 return make_scoped_ptr<PrivetHTTPAsynchronousFactory>(
22 new PrivetHTTPAsynchronousFactoryMac(request_context));
24 #else
25 return make_scoped_ptr<PrivetHTTPAsynchronousFactory>(
26 new PrivetHTTPAsynchronousFactoryImpl(service_discovery_client,
27 request_context));
28 #endif
31 } // namespace local_discovery