OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 EnableAfterBackgroundAppInstall); | 81 EnableAfterBackgroundAppInstall); |
82 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, | 82 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, |
83 MultiProfile); | 83 MultiProfile); |
84 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, | 84 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, |
85 ProfileInfoCacheStorage); | 85 ProfileInfoCacheStorage); |
86 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, | 86 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, |
87 ProfileInfoCacheObserver); | 87 ProfileInfoCacheObserver); |
88 | 88 |
89 class BackgroundModeData : public ui::SimpleMenuModel::Delegate { | 89 class BackgroundModeData : public ui::SimpleMenuModel::Delegate { |
90 public: | 90 public: |
91 explicit BackgroundModeData( | 91 BackgroundModeData( |
92 int command_id, | 92 int command_id, |
93 Profile* profile); | 93 Profile* profile); |
94 virtual ~BackgroundModeData(); | 94 virtual ~BackgroundModeData(); |
95 | 95 |
96 // The cached list of BackgroundApplications. | 96 // The cached list of BackgroundApplications. |
97 scoped_ptr<BackgroundApplicationListModel> applications_; | 97 scoped_ptr<BackgroundApplicationListModel> applications_; |
98 | 98 |
99 // Overrides from SimpleMenuModel::Delegate implementation. | 99 // Overrides from SimpleMenuModel::Delegate implementation. |
100 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 100 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
101 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 101 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // app). | 303 // app). |
304 bool keep_alive_for_test_; | 304 bool keep_alive_for_test_; |
305 | 305 |
306 // Provides a command id for each profile as they are created. | 306 // Provides a command id for each profile as they are created. |
307 int current_command_id_; | 307 int current_command_id_; |
308 | 308 |
309 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); | 309 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); |
310 }; | 310 }; |
311 | 311 |
312 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 312 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
OLD | NEW |