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

Side by Side Diff: chrome/browser/extensions/api/mdns/mdns_api_factory.h

Issue 23437015: Initial chrome.mdns API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
OLDNEW
(Empty)
1 // Copyright (c) 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_EXTENSIONS_API_MDNS_MDNS_API_FACTORY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MDNS_MDNS_API_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h"
10
11 class Profile;
12
13 namespace extensions {
14
15 class MDnsAPI;
16
17 class MDnsAPIFactory : public BrowserContextKeyedServiceFactory {
Matt Perry 2013/08/30 00:43:29 Use ProfileKeyedAPI instead, and you can get rid o
justinlin 2013/09/03 21:21:56 Done. Wow, this is great!
18 public:
19 static MDnsAPI* GetForProfile(Profile* profile);
20 static MDnsAPIFactory* GetInstance();
21
22 private:
23 friend struct DefaultSingletonTraits<MDnsAPIFactory>;
24
25 MDnsAPIFactory();
26 virtual ~MDnsAPIFactory();
27
28 // BrowserContextKeyedServiceFactory:
29 virtual BrowserContextKeyedService *BuildServiceInstanceFor(
30 content::BrowserContext* profile) const OVERRIDE;
31 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
32 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
33
34 DISALLOW_COPY_AND_ASSIGN(MDnsAPIFactory);
35 };
36
37 } // namespace extensions
38
39 #endif // CHROME_BROWSER_EXTENSIONS_API_MDNS_MDNS_API_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698