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

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

Issue 265163006: [Mac] Rebuild app shims when they fail to dyload Chrome Framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Write code that compiles Created 6 years, 7 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 | Annotate | Revision Log
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 30 matching lines...) Expand all
41 virtual void SetAppListNextPaintCallback(void (*callback)()) OVERRIDE; 41 virtual void SetAppListNextPaintCallback(void (*callback)()) OVERRIDE;
42 virtual void HandleFirstRun() OVERRIDE; 42 virtual void HandleFirstRun() OVERRIDE;
43 virtual void Init(Profile* initial_profile) OVERRIDE; 43 virtual void Init(Profile* initial_profile) OVERRIDE;
44 virtual base::FilePath GetProfilePath( 44 virtual base::FilePath GetProfilePath(
45 const base::FilePath& user_data_dir) OVERRIDE; 45 const base::FilePath& user_data_dir) OVERRIDE;
46 virtual void SetProfilePath(const base::FilePath& profile_path) OVERRIDE; 46 virtual void SetProfilePath(const base::FilePath& profile_path) OVERRIDE;
47 virtual void Show() OVERRIDE; 47 virtual void Show() OVERRIDE;
48 virtual void AutoShowForProfile(Profile* requested_profile) OVERRIDE; 48 virtual void AutoShowForProfile(Profile* requested_profile) OVERRIDE;
49 virtual void EnableAppList(Profile* initial_profile, 49 virtual void EnableAppList(Profile* initial_profile,
50 AppListEnableSource enable_source) OVERRIDE; 50 AppListEnableSource enable_source) OVERRIDE;
51 virtual void CreateShortcut() OVERRIDE;
51 52
52 protected: 53 protected:
53 AppListServiceImpl(); 54 AppListServiceImpl();
54 55
55 void InvalidatePendingProfileLoads(); 56 void InvalidatePendingProfileLoads();
56 ProfileLoader& profile_loader() { return *profile_loader_; } 57 ProfileLoader& profile_loader() { return *profile_loader_; }
57 const ProfileLoader& profile_loader() const { return *profile_loader_; } 58 const ProfileLoader& profile_loader() const { return *profile_loader_; }
58 59
59 // Perform startup checks shared between desktop implementations of the app 60 // Perform startup checks shared between desktop implementations of the app
60 // list. Currently this checks command line flags to enable or disable the app 61 // list. Currently this checks command line flags to enable or disable the app
61 // list, and records UMA stats delayed from a previous Chrome process. 62 // list, and records UMA stats delayed from a previous Chrome process.
62 void PerformStartupChecks(Profile* initial_profile); 63 void PerformStartupChecks(Profile* initial_profile);
63 64
64 // Create a platform-specific shortcut for the app list.
65 virtual void CreateShortcut();
66
67 private: 65 private:
68 static void SendAppListStats(); 66 static void SendAppListStats();
69 67
70 // Loads a profile asynchronously and calls OnProfileLoaded() when done. 68 // Loads a profile asynchronously and calls OnProfileLoaded() when done.
71 void LoadProfileAsync(const base::FilePath& profile_file_path); 69 void LoadProfileAsync(const base::FilePath& profile_file_path);
72 70
73 // Callback for asynchronous profile load. 71 // Callback for asynchronous profile load.
74 void OnProfileLoaded(int profile_load_sequence_id, 72 void OnProfileLoaded(int profile_load_sequence_id,
75 Profile* profile, 73 Profile* profile,
76 Profile::CreateStatus status); 74 Profile::CreateStatus status);
77 75
78 // ProfileInfoCacheObserver overrides: 76 // ProfileInfoCacheObserver overrides:
79 virtual void OnProfileWillBeRemoved( 77 virtual void OnProfileWillBeRemoved(
80 const base::FilePath& profile_path) OVERRIDE; 78 const base::FilePath& profile_path) OVERRIDE;
81 79
82 scoped_ptr<ProfileStore> profile_store_; 80 scoped_ptr<ProfileStore> profile_store_;
83 base::WeakPtrFactory<AppListServiceImpl> weak_factory_; 81 base::WeakPtrFactory<AppListServiceImpl> weak_factory_;
84 base::CommandLine command_line_; 82 base::CommandLine command_line_;
85 PrefService* local_state_; 83 PrefService* local_state_;
86 scoped_ptr<ProfileLoader> profile_loader_; 84 scoped_ptr<ProfileLoader> profile_loader_;
87 85
88 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl); 86 DISALLOW_COPY_AND_ASSIGN(AppListServiceImpl);
89 }; 87 };
90 88
91 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_ 89 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698