Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ | |
| 6 #define CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/memory/scoped_ptr.h" | |
| 11 #include "base/pickle.h" | |
| 12 #include "base/strings/string16.h" | |
| 13 #include "ui/app_list/app_list_item_model.h" | |
| 14 #include "ui/app_list/app_list_model.h" | |
| 15 | |
| 16 | |
|
benwells
2013/08/29 04:49:28
Nit: extra blank line.
| |
| 17 // Functions for pickling/unpickling AppListModel for fast show. Fast show is | |
| 18 // where the app list is put on the screen using data retrieved from a cache | |
| 19 // before the extension system has loaded. | |
| 20 class FastShowPickler { | |
| 21 public: | |
| 22 // The version that this pickler understands. | |
| 23 static const int kVersion; | |
| 24 | |
| 25 // Pickles a subset of the data in |model| that is useful for doing a fast | |
| 26 // show of the app list. | |
| 27 static scoped_ptr<Pickle> PickleAppListModelForFastShow( | |
|
benwells
2013/08/29 04:49:28
Nit: Maybe don't need 'ForFastShow' in the name as
| |
| 28 app_list::AppListModel* model); | |
| 29 | |
| 30 // Given a Pickle created by PickleAppListModelForFastShow(), this creates an | |
| 31 // AppListModel that represents it. | |
| 32 static scoped_ptr<app_list::AppListModel> UnpickleAppListModelForFastShow( | |
| 33 Pickle* pickle); | |
| 34 | |
| 35 // Copies parts that are needed to show the app list quickly on startup from | |
| 36 // |src| to |dest|. | |
| 37 static void CopyOver( | |
|
benwells
2013/08/29 04:49:28
What is this going to be used for?
| |
| 38 app_list::AppListModel* src, app_list::AppListModel* dest); | |
| 39 }; | |
| 40 | |
| 41 #endif // CHROME_BROWSER_UI_APP_LIST_FAST_SHOW_PICKLER_H_ | |
| OLD | NEW |