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

Side by Side Diff: chrome/browser/apps/shortcut_manager_factory.h

Issue 668903002: Standardize usage of virtual/override/final in chrome/browser/apps/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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_APPS_SHORTCUT_MANAGER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_APPS_SHORTCUT_MANAGER_FACTORY_H_
6 #define CHROME_BROWSER_APPS_SHORTCUT_MANAGER_FACTORY_H_ 6 #define CHROME_BROWSER_APPS_SHORTCUT_MANAGER_FACTORY_H_
7 7
8 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 8 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
9 9
10 template<typename Type> struct DefaultSingletonTraits; 10 template<typename Type> struct DefaultSingletonTraits;
11 11
12 class Profile; 12 class Profile;
13 13
14 class AppShortcutManager; 14 class AppShortcutManager;
15 15
16 // Singleton that owns all AppShortcutManagers and associates them with 16 // Singleton that owns all AppShortcutManagers and associates them with
17 // Profiles. Listens for the Profile's destruction notification and cleans up 17 // Profiles. Listens for the Profile's destruction notification and cleans up
18 // the associated AppShortcutManager. 18 // the associated AppShortcutManager.
19 // AppShortcutManagers should not exist in incognito profiles. 19 // AppShortcutManagers should not exist in incognito profiles.
20 class AppShortcutManagerFactory : public BrowserContextKeyedServiceFactory { 20 class AppShortcutManagerFactory : public BrowserContextKeyedServiceFactory {
21 public: 21 public:
22 static AppShortcutManager* GetForProfile(Profile* profile); 22 static AppShortcutManager* GetForProfile(Profile* profile);
23 23
24 static AppShortcutManagerFactory* GetInstance(); 24 static AppShortcutManagerFactory* GetInstance();
25 25
26 private: 26 private:
27 friend struct DefaultSingletonTraits<AppShortcutManagerFactory>; 27 friend struct DefaultSingletonTraits<AppShortcutManagerFactory>;
28 28
29 AppShortcutManagerFactory(); 29 AppShortcutManagerFactory();
30 virtual ~AppShortcutManagerFactory(); 30 ~AppShortcutManagerFactory() override;
31 31
32 // BrowserContextKeyedServiceFactory: 32 // BrowserContextKeyedServiceFactory:
33 virtual KeyedService* BuildServiceInstanceFor( 33 KeyedService* BuildServiceInstanceFor(
34 content::BrowserContext* profile) const override; 34 content::BrowserContext* profile) const override;
35 virtual bool ServiceIsCreatedWithBrowserContext() const override; 35 bool ServiceIsCreatedWithBrowserContext() const override;
36 virtual bool ServiceIsNULLWhileTesting() const override; 36 bool ServiceIsNULLWhileTesting() const override;
37 }; 37 };
38 38
39 #endif // CHROME_BROWSER_APPS_SHORTCUT_MANAGER_FACTORY_H_ 39 #endif // CHROME_BROWSER_APPS_SHORTCUT_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/shortcut_manager.h ('k') | chrome/browser/apps/speech_recognition_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698