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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/synchronization/lock.h" 15 #include "base/synchronization/lock.h"
16 #include "chrome/browser/history/history_service.h" 16 #include "chrome/browser/history/history_service.h"
17 #include "chrome/browser/history/history_types.h" 17 #include "chrome/browser/history/history_types.h"
18 #include "chrome/browser/sessions/tab_restore_service.h" 18 #include "chrome/browser/sessions/tab_restore_service.h"
19 #include "chrome/browser/sessions/tab_restore_service_observer.h" 19 #include "chrome/browser/sessions/tab_restore_service_observer.h"
20 #include "chrome/common/cancelable_task_tracker.h" 20 #include "chrome/common/cancelable_task_tracker.h"
21 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 22 #include "third_party/skia/include/core/SkBitmap.h"
23 23
24 namespace base {
25 class FilePath;
26 }
27
24 namespace content { 28 namespace content {
25 class NotificationRegistrar; 29 class NotificationRegistrar;
26 } 30 }
27 class FilePath; 31
28 class Profile; 32 class Profile;
29 class PageUsageData; 33 class PageUsageData;
30 34
31 // Represents a class used for creating an IShellLink object by the utility 35 // Represents a class used for creating an IShellLink object by the utility
32 // functions in this file. 36 // functions in this file.
33 // This class consists of three strings and a integer. 37 // This class consists of three strings and a integer.
34 // * arguments (std::wstring) 38 // * arguments (std::wstring)
35 // The arguments for the application. 39 // The arguments for the application.
36 // * title (std::wstring) 40 // * title (std::wstring)
37 // The string to be displayed in a JumpList. 41 // The string to be displayed in a JumpList.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // The Profile object is used to listen for events 219 // The Profile object is used to listen for events
216 Profile* profile_; 220 Profile* profile_;
217 221
218 // Lives on the UI thread. 222 // Lives on the UI thread.
219 scoped_ptr<content::NotificationRegistrar> registrar_; 223 scoped_ptr<content::NotificationRegistrar> registrar_;
220 224
221 // App id to associate with the jump list. 225 // App id to associate with the jump list.
222 std::wstring app_id_; 226 std::wstring app_id_;
223 227
224 // The directory which contains JumpList icons. 228 // The directory which contains JumpList icons.
225 FilePath icon_dir_; 229 base::FilePath icon_dir_;
226 230
227 // Items in the "Most Visited" category of the application JumpList, 231 // Items in the "Most Visited" category of the application JumpList,
228 // protected by the list_lock_. 232 // protected by the list_lock_.
229 ShellLinkItemList most_visited_pages_; 233 ShellLinkItemList most_visited_pages_;
230 234
231 // Items in the "Recently Closed" category of the application JumpList, 235 // Items in the "Recently Closed" category of the application JumpList,
232 // protected by the list_lock_. 236 // protected by the list_lock_.
233 ShellLinkItemList recently_closed_pages_; 237 ShellLinkItemList recently_closed_pages_;
234 238
235 // A list of URLs we need to retrieve their favicons, 239 // A list of URLs we need to retrieve their favicons,
236 // protected by the list_lock_. 240 // protected by the list_lock_.
237 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair; 241 typedef std::pair<std::string, scoped_refptr<ShellLinkItem> > URLPair;
238 std::list<URLPair> icon_urls_; 242 std::list<URLPair> icon_urls_;
239 243
240 // Id of last favicon task. It's used to cancel current task if a new one 244 // Id of last favicon task. It's used to cancel current task if a new one
241 // comes in before it finishes. 245 // comes in before it finishes.
242 CancelableTaskTracker::TaskId task_id_; 246 CancelableTaskTracker::TaskId task_id_;
243 247
244 // Lock for most_visited_pages_, recently_closed_pages_, icon_urls_ 248 // Lock for most_visited_pages_, recently_closed_pages_, icon_urls_
245 // as they may be used by up to 3 threads. 249 // as they may be used by up to 3 threads.
246 base::Lock list_lock_; 250 base::Lock list_lock_;
247 251
248 DISALLOW_COPY_AND_ASSIGN(JumpList); 252 DISALLOW_COPY_AND_ASSIGN(JumpList);
249 }; 253 };
250 254
251 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ 255 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/nss_decryptor_win.h ('k') | chrome/browser/managed_mode/managed_mode_url_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698