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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, | 78 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, |
79 DisableBackgroundModeUnderTestFlag); | 79 DisableBackgroundModeUnderTestFlag); |
80 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, | 80 FRIEND_TEST_ALL_PREFIXES(BackgroundModeManagerTest, |
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 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, | |
89 ReloadBackroundExtension); | |
90 class BackgroundModeData : public ui::SimpleMenuModel::Delegate { | 88 class BackgroundModeData : public ui::SimpleMenuModel::Delegate { |
91 public: | 89 public: |
92 explicit BackgroundModeData( | 90 explicit BackgroundModeData( |
93 int command_id, | 91 int command_id, |
94 Profile* profile); | 92 Profile* profile); |
95 virtual ~BackgroundModeData(); | 93 virtual ~BackgroundModeData(); |
96 | 94 |
97 // The cached list of BackgroundApplications. | 95 // The cached list of BackgroundApplications. |
98 scoped_ptr<BackgroundApplicationListModel> applications_; | 96 scoped_ptr<BackgroundApplicationListModel> applications_; |
99 | 97 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // app). | 304 // app). |
307 bool keep_alive_for_test_; | 305 bool keep_alive_for_test_; |
308 | 306 |
309 // Provides a command id for each profile as they are created. | 307 // Provides a command id for each profile as they are created. |
310 int current_command_id_; | 308 int current_command_id_; |
311 | 309 |
312 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); | 310 DISALLOW_COPY_AND_ASSIGN(BackgroundModeManager); |
313 }; | 311 }; |
314 | 312 |
315 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ | 313 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_MODE_MANAGER_H_ |
OLD | NEW |