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

Side by Side Diff: chrome/browser/ui/app_list/recommended_apps.h

Issue 176883003: Make InstallObserver methods not pure-virtual (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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_UI_APP_LIST_RECOMMENDED_APPS_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_
6 #define CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 30
31 void AddObserver(RecommendedAppsObserver* observer); 31 void AddObserver(RecommendedAppsObserver* observer);
32 void RemoveObserver(RecommendedAppsObserver* observer); 32 void RemoveObserver(RecommendedAppsObserver* observer);
33 33
34 const Apps& apps() const { return apps_; } 34 const Apps& apps() const { return apps_; }
35 35
36 private: 36 private:
37 void Update(); 37 void Update();
38 38
39 // extensions::InstallObserver overrides: 39 // extensions::InstallObserver overrides:
40 virtual void OnBeginExtensionInstall(
41 const ExtensionInstallParams& params) OVERRIDE;
42 virtual void OnDownloadProgress(const std::string& extension_id,
43 int percent_downloaded) OVERRIDE;
44 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE;
45 virtual void OnExtensionInstalled( 40 virtual void OnExtensionInstalled(
46 const extensions::Extension* extension) OVERRIDE; 41 const extensions::Extension* extension) OVERRIDE;
47 virtual void OnExtensionLoaded( 42 virtual void OnExtensionLoaded(
48 const extensions::Extension* extension) OVERRIDE; 43 const extensions::Extension* extension) OVERRIDE;
49 virtual void OnExtensionUnloaded( 44 virtual void OnExtensionUnloaded(
50 const extensions::Extension* extension) OVERRIDE; 45 const extensions::Extension* extension) OVERRIDE;
51 virtual void OnExtensionUninstalled( 46 virtual void OnExtensionUninstalled(
52 const extensions::Extension* extension) OVERRIDE; 47 const extensions::Extension* extension) OVERRIDE;
53 virtual void OnAppsReordered() OVERRIDE;
54 virtual void OnAppInstalledToAppList(
55 const std::string& extension_id) OVERRIDE;
56 virtual void OnShutdown() OVERRIDE;
57 48
58 Profile* profile_; 49 Profile* profile_;
59 PrefChangeRegistrar pref_change_registrar_; 50 PrefChangeRegistrar pref_change_registrar_;
60 51
61 Apps apps_; 52 Apps apps_;
62 ObserverList<RecommendedAppsObserver, true> observers_; 53 ObserverList<RecommendedAppsObserver, true> observers_;
63 54
64 DISALLOW_COPY_AND_ASSIGN(RecommendedApps); 55 DISALLOW_COPY_AND_ASSIGN(RecommendedApps);
65 }; 56 };
66 57
67 } // namespace app_list 58 } // namespace app_list
68 59
69 #endif // CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_ 60 #endif // CHROME_BROWSER_UI_APP_LIST_RECOMMENDED_APPS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/extension_app_model_builder.cc ('k') | chrome/browser/ui/app_list/recommended_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698