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. 4 5#ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_ 6#define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_ 7 8#include "chrome/common/local_discovery/service_discovery_client.h" 9 10namespace local_discovery { 11 12class ServiceDiscoverySharedClient 13 : public base::RefCounted<ServiceDiscoverySharedClient>, 14 public ServiceDiscoveryClient { 15 public: 16 static scoped_refptr<ServiceDiscoverySharedClient> GetInstance(); 17 18 protected: 19 ServiceDiscoverySharedClient(); 20 virtual ~ServiceDiscoverySharedClient(); 21 22 private: 23 friend class base::RefCounted<ServiceDiscoverySharedClient>; 24 25 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoverySharedClient); 26}; 27 28} // namespace local_discovery 29 30#endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_ 31