Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: chrome/browser/local_discovery/service_discovery_shared_client.h

Issue 509423002: Printing fixups for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/printing/printing_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_
7 7
8 #include "chrome/common/local_discovery/service_discovery_client.h" 8 #include "chrome/common/local_discovery/service_discovery_client.h"
9 9
10 namespace local_discovery { 10 namespace local_discovery {
11 11
12 class ServiceDiscoverySharedClient 12 class ServiceDiscoverySharedClient
13 : public base::RefCounted<ServiceDiscoverySharedClient>, 13 : public base::RefCounted<ServiceDiscoverySharedClient>,
14 public ServiceDiscoveryClient { 14 public ServiceDiscoveryClient {
15 public: 15 public:
16 static scoped_refptr<ServiceDiscoverySharedClient> GetInstance(); 16 static scoped_refptr<ServiceDiscoverySharedClient> GetInstance();
17 17
18 typedef base::Callback<void(scoped_refptr<ServiceDiscoverySharedClient>)> 18 typedef base::Callback<void(
19 GetInstanceCallback; 19 const scoped_refptr<ServiceDiscoverySharedClient>&)> GetInstanceCallback;
20 static void GetInstanceWithoutAlert(const GetInstanceCallback& callback); 20 static void GetInstanceWithoutAlert(const GetInstanceCallback& callback);
21 21
22 protected: 22 protected:
23 ServiceDiscoverySharedClient(); 23 ServiceDiscoverySharedClient();
24 virtual ~ServiceDiscoverySharedClient(); 24 virtual ~ServiceDiscoverySharedClient();
25 25
26 private: 26 private:
27 friend class base::RefCounted<ServiceDiscoverySharedClient>; 27 friend class base::RefCounted<ServiceDiscoverySharedClient>;
28 28
29 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoverySharedClient); 29 DISALLOW_COPY_AND_ASSIGN(ServiceDiscoverySharedClient);
30 }; 30 };
31 31
32 } // namespace local_discovery 32 } // namespace local_discovery
33 33
34 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_ 34 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_SERVICE_DISCOVERY_SHARED_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/printing_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698