OLD | NEW |
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_FAST_SHOW_PICKLER_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ |
6 #define CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Pickles a subset of the data in |model| that is useful for doing a fast | 22 // Pickles a subset of the data in |model| that is useful for doing a fast |
23 // show of the app list. | 23 // show of the app list. |
24 static scoped_ptr<Pickle> PickleAppListModelForFastShow( | 24 static scoped_ptr<Pickle> PickleAppListModelForFastShow( |
25 app_list::AppListModel* model); | 25 app_list::AppListModel* model); |
26 | 26 |
27 // Given a Pickle created by PickleAppListModelForFastShow(), this creates an | 27 // Given a Pickle created by PickleAppListModelForFastShow(), this creates an |
28 // AppListModel that represents it. | 28 // AppListModel that represents it. |
29 static scoped_ptr<app_list::AppListModel> UnpickleAppListModelForFastShow( | 29 static scoped_ptr<app_list::AppListModel> UnpickleAppListModelForFastShow( |
30 Pickle* pickle); | 30 Pickle* pickle); |
31 | |
32 // Copies parts that are needed to show the app list quickly on startup from | |
33 // |src| to |dest|. | |
34 static void CopyOver( | |
35 app_list::AppListModel* src, app_list::AppListModel* dest); | |
36 }; | 31 }; |
37 | 32 |
38 #endif // CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ | 33 #endif // CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ |
OLD | NEW |