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

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

Issue 1109043003: Apply automated fixits for Chrome clang plugin to chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void Terminate(); 79 void Terminate();
80 80
81 // Returns true if the custom JumpList is enabled. 81 // Returns true if the custom JumpList is enabled.
82 // The custom jumplist works only on Windows 7 and above. 82 // The custom jumplist works only on Windows 7 and above.
83 static bool Enabled(); 83 static bool Enabled();
84 84
85 private: 85 private:
86 friend struct content::BrowserThread::DeleteOnThread< 86 friend struct content::BrowserThread::DeleteOnThread<
87 content::BrowserThread::UI>; 87 content::BrowserThread::UI>;
88 friend class base::DeleteHelper<JumpList>; 88 friend class base::DeleteHelper<JumpList>;
89 virtual ~JumpList(); 89 ~JumpList() override;
90 90
91 // Creates a ShellLinkItem object from a tab (or a window) and add it to the 91 // Creates a ShellLinkItem object from a tab (or a window) and add it to the
92 // given list. 92 // given list.
93 // These functions are copied from the RecentlyClosedTabsHandler class for 93 // These functions are copied from the RecentlyClosedTabsHandler class for
94 // compatibility with the new-tab page. 94 // compatibility with the new-tab page.
95 bool AddTab(const TabRestoreService::Tab* tab, 95 bool AddTab(const TabRestoreService::Tab* tab,
96 ShellLinkItemList* list, 96 ShellLinkItemList* list,
97 size_t max_items); 97 size_t max_items);
98 void AddWindow(const TabRestoreService::Window* window, 98 void AddWindow(const TabRestoreService::Window* window,
99 ShellLinkItemList* list, 99 ShellLinkItemList* list,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // as they may be used by up to 3 threads. 175 // as they may be used by up to 3 threads.
176 base::Lock list_lock_; 176 base::Lock list_lock_;
177 177
178 // For callbacks may be run after destruction. 178 // For callbacks may be run after destruction.
179 base::WeakPtrFactory<JumpList> weak_ptr_factory_; 179 base::WeakPtrFactory<JumpList> weak_ptr_factory_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(JumpList); 181 DISALLOW_COPY_AND_ASSIGN(JumpList);
182 }; 182 };
183 183
184 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_ 184 #endif // CHROME_BROWSER_JUMPLIST_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/ie_importer_browsertest_win.cc ('k') | chrome/browser/password_manager/password_store_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698