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

Side by Side Diff: chrome/browser/chromeos/launcher_search_provider/service_factory.h

Issue 1208963003: Move GN obj files to target-specific dirs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 5 years, 5 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 2015 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_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_SERVICE_FACTORY_H_
6 #define CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_SERVICE_FACTORY_H_
7
8 #include "base/memory/singleton.h"
9 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
10 #include "content/public/browser/browser_context.h"
11
12 namespace chromeos {
13 namespace launcher_search_provider {
14
15 class Service;
16
17 // Creates services per profile.
18 class ServiceFactory : public BrowserContextKeyedServiceFactory {
19 public:
20 // Returns a service instance singleton, after creating it (if necessary).
21 static Service* Get(content::BrowserContext* context);
22
23 // Gets a singleton instance of the factory.
24 static ServiceFactory* GetInstance();
25
26 private:
27 friend struct DefaultSingletonTraits<ServiceFactory>;
28
29 ServiceFactory();
30 ~ServiceFactory() override;
31
32 // BrowserContextKeyedServiceFactory overrides:
33 KeyedService* BuildServiceInstanceFor(
34 content::BrowserContext* profile) const override;
35 bool ServiceIsCreatedWithBrowserContext() const override;
36
37 DISALLOW_COPY_AND_ASSIGN(ServiceFactory);
38 };
39
40 } // namespace launcher_search_provider
41 } // namespace chromeos
42
43 #endif // CHROME_BROWSER_CHROMEOS_LAUNCHER_SEARCH_PROVIDER_SERVICE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698