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

Side by Side Diff: content/public/browser/font_list_async.h

Issue 2886883003: Remove content::kFontListSequenceToken. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/common/font_list_fontconfig.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_PUBLIC_BROWSER_FONT_LIST_ASYNC_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_FONT_LIST_ASYNC_H_
6 #define CONTENT_PUBLIC_BROWSER_FONT_LIST_ASYNC_H_ 6 #define CONTENT_PUBLIC_BROWSER_FONT_LIST_ASYNC_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 12
13 namespace base { 13 namespace base {
14 class ListValue; 14 class ListValue;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 18
19 // Retrieves the list of fonts on the system as a list of strings. It provides 19 // Retrieves the list of fonts on the system as a list of strings. It provides
20 // a non-blocking interface to GetFontList_SlowBlocking in common/. 20 // a non-blocking interface to GetFontList_SlowBlocking in common/.
21 // 21 //
22 // This function will run asynchronously on a background thread since getting 22 // This function will run asynchronously on a background thread since getting
23 // the font list from the system can be slow. This function may be called from 23 // the font list from the system can be slow. The callback will be executed on
24 // any thread that has a BrowserThread::ID. The callback will be executed on 24 // the calling sequence.
25 // the calling thread.
26 CONTENT_EXPORT void GetFontListAsync( 25 CONTENT_EXPORT void GetFontListAsync(
27 const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback); 26 base::OnceCallback<void(std::unique_ptr<base::ListValue>)> callback);
28 27
29 } // namespace content 28 } // namespace content
30 29
31 #endif // CONTENT_PUBLIC_BROWSER_FONT_LIST_ASYNC_H_ 30 #endif // CONTENT_PUBLIC_BROWSER_FONT_LIST_ASYNC_H_
OLDNEW
« no previous file with comments | « content/common/font_list_fontconfig.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698