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

Side by Side Diff: chrome/browser/win/jumplist_file_util.h

Issue 2896233003: Cancel the JumpList update if top 5 most visited URLs are unchanged (Closed)
Patch Set: Fix nits Created 3 years, 6 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/win/jumplist.cc ('k') | chrome/browser/win/jumplist_update_util.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) 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_WIN_JUMPLIST_FILE_UTIL_H_ 5 #ifndef CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_
6 #define CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ 6 #define CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_
7 7
8 #include "base/containers/flat_set.h" 8 #include "base/containers/flat_set.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 10
11 // Maximum number of icon files allowed to delete per jumplist update. 11 // Maximum number of icon files allowed to delete per jumplist update.
(...skipping 30 matching lines...) Expand all
42 42
43 // Returns true if the directory at |path| has more than |max_files| files. 43 // Returns true if the directory at |path| has more than |max_files| files.
44 // Sub-directories are not taken into account here. 44 // Sub-directories are not taken into account here.
45 bool FilesExceedLimitInDir(const base::FilePath& path, int max_files); 45 bool FilesExceedLimitInDir(const base::FilePath& path, int max_files);
46 46
47 // Deletes all files in the directory at |path| but not in set |cached_files|. 47 // Deletes all files in the directory at |path| but not in set |cached_files|.
48 void DeleteNonCachedFiles(const base::FilePath& path, 48 void DeleteNonCachedFiles(const base::FilePath& path,
49 const base::flat_set<base::FilePath>& cached_files); 49 const base::flat_set<base::FilePath>& cached_files);
50 50
51 #endif // CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_ 51 #endif // CHROME_BROWSER_WIN_JUMPLIST_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/win/jumplist.cc ('k') | chrome/browser/win/jumplist_update_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698