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

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

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (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_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 scoped_ptr<ProfileStore> profile_store); 40 scoped_ptr<ProfileStore> profile_store);
41 41
42 // Lazily create the Chrome AppListViewDelegate and ensure it is set to the 42 // Lazily create the Chrome AppListViewDelegate and ensure it is set to the
43 // given |profile|. 43 // given |profile|.
44 AppListViewDelegate* GetViewDelegate(Profile* profile); 44 AppListViewDelegate* GetViewDelegate(Profile* profile);
45 45
46 void RecordAppListLaunch(); 46 void RecordAppListLaunch();
47 static void RecordAppListAppLaunch(); 47 static void RecordAppListAppLaunch();
48 48
49 // AppListService overrides: 49 // AppListService overrides:
50 virtual void SetAppListNextPaintCallback(void (*callback)()) OVERRIDE; 50 virtual void SetAppListNextPaintCallback(void (*callback)()) override;
51 virtual void HandleFirstRun() OVERRIDE; 51 virtual void HandleFirstRun() override;
52 virtual void Init(Profile* initial_profile) OVERRIDE; 52 virtual void Init(Profile* initial_profile) override;
53 virtual base::FilePath GetProfilePath( 53 virtual base::FilePath GetProfilePath(
54 const base::FilePath& user_data_dir) OVERRIDE; 54 const base::FilePath& user_data_dir) override;
55 virtual void SetProfilePath(const base::FilePath& profile_path) OVERRIDE; 55 virtual void SetProfilePath(const base::FilePath& profile_path) override;
56 virtual void Show() OVERRIDE; 56 virtual void Show() override;
57 virtual void AutoShowForProfile(Profile* requested_profile) OVERRIDE; 57 virtual void AutoShowForProfile(Profile* requested_profile) override;
58 virtual void EnableAppList(Profile* initial_profile, 58 virtual void EnableAppList(Profile* initial_profile,
59 AppListEnableSource enable_source) OVERRIDE; 59 AppListEnableSource enable_source) override;
60 virtual void CreateShortcut() OVERRIDE; 60 virtual void CreateShortcut() override;
61 61
62 protected: 62 protected:
63 AppListServiceImpl(); 63 AppListServiceImpl();
64 64
65 // Destroy the app list. Called when the profile that the app list is showing 65 // Destroy the app list. Called when the profile that the app list is showing
66 // is being deleted. 66 // is being deleted.
67 virtual void DestroyAppList() = 0; 67 virtual void DestroyAppList() = 0;
68 68
69 void InvalidatePendingProfileLoads(); 69 void InvalidatePendingProfileLoads();
70 ProfileLoader& profile_loader() { return *profile_loader_; } 70 ProfileLoader& profile_loader() { return *profile_loader_; }
(...skipping 11 matching lines...) Expand all
82 // Loads a profile asynchronously and calls OnProfileLoaded() when done. 82 // Loads a profile asynchronously and calls OnProfileLoaded() when done.
83 void LoadProfileAsync(const base::FilePath& profile_file_path); 83 void LoadProfileAsync(const base::FilePath& profile_file_path);
84 84
85 // Callback for asynchronous profile load. 85 // Callback for asynchronous profile load.
86 void OnProfileLoaded(int profile_load_sequence_id, 86 void OnProfileLoaded(int profile_load_sequence_id,
87 Profile* profile, 87 Profile* profile,
88 Profile::CreateStatus status); 88 Profile::CreateStatus status);
89 89
90 // ProfileInfoCacheObserver overrides: 90 // ProfileInfoCacheObserver overrides:
91 virtual void OnProfileWillBeRemoved( 91 virtual void OnProfileWillBeRemoved(
92 const base::FilePath& profile_path) OVERRIDE; 92 const base::FilePath& profile_path) override;
93 93
94 scoped_ptr<ProfileStore> profile_store_; 94 scoped_ptr<ProfileStore> profile_store_;
95 base::CommandLine command_line_; 95 base::CommandLine command_line_;
96 PrefService* local_state_; 96 PrefService* local_state_;
97 scoped_ptr<ProfileLoader> profile_loader_; 97 scoped_ptr<ProfileLoader> profile_loader_;
98 scoped_ptr<AppListViewDelegate> view_delegate_; 98 scoped_ptr<AppListViewDelegate> view_delegate_;
99 99
100 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; 100 base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); 102 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl);
103 }; 103 };
104 104
105 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 105 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_disabled.cc ('k') | chrome/browser/ui/app_list/app_list_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698