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

Side by Side Diff: athena/extensions/public/extension_app_model_builder.h

Issue 641683003: C++11 override style change for athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src@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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ATHENA_EXTENSIONS_PUBLIC_EXTENSION_APP_MODEL_BUILDER_H_ 5 #ifndef ATHENA_EXTENSIONS_PUBLIC_EXTENSION_APP_MODEL_BUILDER_H_
6 #define ATHENA_EXTENSIONS_PUBLIC_EXTENSION_APP_MODEL_BUILDER_H_ 6 #define ATHENA_EXTENSIONS_PUBLIC_EXTENSION_APP_MODEL_BUILDER_H_
7 7
8 #include "athena/home/public/app_model_builder.h" 8 #include "athena/home/public/app_model_builder.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "extensions/browser/extension_registry_observer.h" 11 #include "extensions/browser/extension_registry_observer.h"
12 12
13 namespace content { 13 namespace content {
14 class BrowserContext; 14 class BrowserContext;
15 } 15 }
16 16
17 namespace extensions { 17 namespace extensions {
18 class Extension; 18 class Extension;
19 } 19 }
20 20
21 namespace athena { 21 namespace athena {
22 22
23 class ATHENA_EXPORT ExtensionAppModelBuilder 23 class ATHENA_EXPORT ExtensionAppModelBuilder
24 : public AppModelBuilder, 24 : public AppModelBuilder,
25 public extensions::ExtensionRegistryObserver { 25 public extensions::ExtensionRegistryObserver {
26 public: 26 public:
27 explicit ExtensionAppModelBuilder(content::BrowserContext* browser_context); 27 explicit ExtensionAppModelBuilder(content::BrowserContext* browser_context);
28 virtual ~ExtensionAppModelBuilder(); 28 ~ExtensionAppModelBuilder() override;
29 29
30 virtual void RegisterAppListModel(app_list::AppListModel* model) override; 30 void RegisterAppListModel(app_list::AppListModel* model) override;
31 31
32 private: 32 private:
33 void AddItem(scoped_refptr<const extensions::Extension> extension); 33 void AddItem(scoped_refptr<const extensions::Extension> extension);
34 34
35 // extensions::ExtensionRegistryObserver: 35 // extensions::ExtensionRegistryObserver:
36 virtual void OnExtensionInstalled(content::BrowserContext* browser_context, 36 void OnExtensionInstalled(content::BrowserContext* browser_context,
37 const extensions::Extension* extension, 37 const extensions::Extension* extension,
38 bool is_update) override; 38 bool is_update) override;
39 virtual void OnExtensionUninstalled( 39 void OnExtensionUninstalled(
40 content::BrowserContext* browser_context, 40 content::BrowserContext* browser_context,
41 const extensions::Extension* extension, 41 const extensions::Extension* extension,
42 extensions::UninstallReason reason) override; 42 extensions::UninstallReason reason) override;
43 43
44 content::BrowserContext* browser_context_; 44 content::BrowserContext* browser_context_;
45 45
46 // Unowned pointer to the app list model. 46 // Unowned pointer to the app list model.
47 app_list::AppListModel* model_; 47 app_list::AppListModel* model_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder); 49 DISALLOW_COPY_AND_ASSIGN(ExtensionAppModelBuilder);
50 }; 50 };
51 51
52 } // namespace athena 52 } // namespace athena
53 53
54 #endif // ATHENA_EXTENSIONS_PUBLIC_EXTENSION_APP_MODEL_BUILDER_H_ 54 #endif // ATHENA_EXTENSIONS_PUBLIC_EXTENSION_APP_MODEL_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698