Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: chrome/browser/ui/app_list/fast_show_pickler.h

Issue 23684003: Introduce FastShowPickler which will be used for app list cold start. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698