| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_APP_MENU_MODEL_H_ | 5 #ifndef CHROME_BROWSER_APP_MENU_MODEL_H_ |
| 6 #define CHROME_BROWSER_APP_MENU_MODEL_H_ | 6 #define CHROME_BROWSER_APP_MENU_MODEL_H_ |
| 7 | 7 |
| 8 #include "app/menus/simple_menu_model.h" | 8 #include "app/menus/simple_menu_model.h" |
| 9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 Browser* browser); | 21 Browser* browser); |
| 22 virtual ~AppMenuModel(); | 22 virtual ~AppMenuModel(); |
| 23 | 23 |
| 24 // Overridden from GetProfilesHelper::Delegate | 24 // Overridden from GetProfilesHelper::Delegate |
| 25 virtual void OnGetProfilesDone( | 25 virtual void OnGetProfilesDone( |
| 26 const std::vector<std::wstring>& profiles); | 26 const std::vector<std::wstring>& profiles); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 void Build(); | 29 void Build(); |
| 30 | 30 |
| 31 // The top-level model. | |
| 32 scoped_ptr<menus::SimpleMenuModel> model_; | |
| 33 // Contents of the profiles menu to populate with profile names. | 31 // Contents of the profiles menu to populate with profile names. |
| 34 scoped_ptr<menus::SimpleMenuModel> profiles_menu_contents_; | 32 scoped_ptr<menus::SimpleMenuModel> profiles_menu_contents_; |
| 35 | 33 |
| 36 // Helper class to enumerate profiles information on the file thread. | 34 // Helper class to enumerate profiles information on the file thread. |
| 37 scoped_refptr<GetProfilesHelper> profiles_helper_; | 35 scoped_refptr<GetProfilesHelper> profiles_helper_; |
| 38 | 36 |
| 39 Browser* browser_; // weak | 37 Browser* browser_; // weak |
| 40 | 38 |
| 41 DISALLOW_COPY_AND_ASSIGN(AppMenuModel); | 39 DISALLOW_COPY_AND_ASSIGN(AppMenuModel); |
| 42 }; | 40 }; |
| 43 | 41 |
| 44 #endif // CHROME_BROWSER_APP_MENU_MODEL_H_ | 42 #endif // CHROME_BROWSER_APP_MENU_MODEL_H_ |
| OLD | NEW |