| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_BUILDER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_BUILDER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_BUILDER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_BUILDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "ash/app_list/app_list_model.h" | 10 #include "ash/app_list/app_list_model.h" |
| 11 | 11 |
| 12 class Profile; | 12 class Profile; |
| 13 | 13 |
| 14 class AppListModelBuilder { | 14 class AppListModelBuilder { |
| 15 public: | 15 public: |
| 16 AppListModelBuilder(Profile* profile, aura_shell::AppListModel* model); | 16 AppListModelBuilder(Profile* profile, ash::AppListModel* model); |
| 17 virtual ~AppListModelBuilder(); | 17 virtual ~AppListModelBuilder(); |
| 18 | 18 |
| 19 // Populates the model. | 19 // Populates the model. |
| 20 void Build(); | 20 void Build(); |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 FRIEND_TEST_ALL_PREFIXES(AppListModelBuilderTest, GetExtensionApps); | 23 FRIEND_TEST_ALL_PREFIXES(AppListModelBuilderTest, GetExtensionApps); |
| 24 | 24 |
| 25 void GetExtensionApps(); | 25 void GetExtensionApps(); |
| 26 void GetBrowserCommands(); | 26 void GetBrowserCommands(); |
| 27 | 27 |
| 28 Profile* profile_; | 28 Profile* profile_; |
| 29 aura_shell::AppListModel* model_; | 29 ash::AppListModel* model_; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(AppListModelBuilder); | 31 DISALLOW_COPY_AND_ASSIGN(AppListModelBuilder); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_BUILDER_H_ | 34 #endif // CHROME_BROWSER_UI_VIEWS_AURA_APP_LIST_APP_LIST_MODEL_BUILDER_H_ |
| OLD | NEW |