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

Side by Side Diff: chrome/browser/jumplist_win.h

Issue 896093004: Cleanup usage of history namespace in components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | chrome/browser/ui/cocoa/history_menu_bridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_JUMPLIST_WIN_H_ 5 #ifndef CHROME_BROWSER_JUMPLIST_WIN_H_
6 #define CHROME_BROWSER_JUMPLIST_WIN_H_ 6 #define CHROME_BROWSER_JUMPLIST_WIN_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 15 matching lines...) Expand all
26 #include "content/public/browser/browser_thread.h" 26 #include "content/public/browser/browser_thread.h"
27 27
28 namespace chrome { 28 namespace chrome {
29 struct FaviconImageResult; 29 struct FaviconImageResult;
30 } 30 }
31 31
32 namespace content { 32 namespace content {
33 class NotificationRegistrar; 33 class NotificationRegistrar;
34 } 34 }
35 35
36 class PageUsageData;
37 class PrefChangeRegistrar; 36 class PrefChangeRegistrar;
38 class Profile; 37 class Profile;
39 38
40 // A class which implements an application JumpList. 39 // A class which implements an application JumpList.
41 // This class encapsulates operations required for updating an application 40 // This class encapsulates operations required for updating an application
42 // JumpList: 41 // JumpList:
43 // * Retrieving "Most Visited" pages from HistoryService; 42 // * Retrieving "Most Visited" pages from HistoryService;
44 // * Retrieving strings from the application resource; 43 // * Retrieving strings from the application resource;
45 // * Creating COM objects used by JumpList from PageUsageData objects;
46 // * Adding COM objects to JumpList, etc. 44 // * Adding COM objects to JumpList, etc.
47 // 45 //
48 // This class observes the tabs and policies of the given Profile and updates 46 // This class observes the tabs and policies of the given Profile and updates
49 // the JumpList whenever a change is detected. 47 // the JumpList whenever a change is detected.
50 // 48 //
51 // Updating a JumpList requires some file operations and it is not good to 49 // Updating a JumpList requires some file operations and it is not good to
52 // update it in a UI thread. To solve this problem, this class posts to a 50 // update it in a UI thread. To solve this problem, this class posts to a
53 // runnable method when it actually updates a JumpList. 51 // runnable method when it actually updates a JumpList.
54 // 52 //
55 // Note. base::CancelableTaskTracker is not thread safe, so we 53 // Note. base::CancelableTaskTracker is not thread safe, so we
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 scoped_ptr<AvatarMenu> avatar_menu_; 198 scoped_ptr<AvatarMenu> avatar_menu_;
201 199
202 // Whether the experiment that is replacing "Most Visited" category with a 200 // Whether the experiment that is replacing "Most Visited" category with a
203 // "People" category is enabled. 201 // "People" category is enabled.
204 bool use_profiles_category_; 202 bool use_profiles_category_;
205 203
206 DISALLOW_COPY_AND_ASSIGN(JumpList); 204 DISALLOW_COPY_AND_ASSIGN(JumpList);
207 }; 205 };
208 206
209 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ 207 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.h ('k') | chrome/browser/ui/cocoa/history_menu_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698