Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / chrome / browser / local_discovery / service_discovery_shared_client.h
blobc0b7d41ec253f31e94989a403b848509cb626ff6
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 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_
8 #include "chrome/common/local_discovery/service_discovery_client.h"
10 namespace local_discovery {
12 class ServiceDiscoverySharedClient
13 : public base::RefCounted<ServiceDiscoverySharedClient>,
14 public ServiceDiscoveryClient {
15 public:
16 static scoped_refptr<ServiceDiscoverySharedClient> GetInstance();
18 typedef base::Callback<void(
19 const scoped_refptr<ServiceDiscoverySharedClient>&)> GetInstanceCallback;
20 static void GetInstanceWithoutAlert(const GetInstanceCallback& callback);
22 protected:
23 ServiceDiscoverySharedClient();
24 ~ServiceDiscoverySharedClient() override;
26 private:
27 friend class base::RefCounted<ServiceDiscoverySharedClient>;
29 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoverySharedClient);
32 } // namespace local_discovery
34 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_