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

Side by Side Diff: content/public/utility/utility_thread.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/public/test/test_utils.cc ('k') | content/shell/app/shell_crash_reporter_client.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 CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ 5 #ifndef CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
6 #define CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ 6 #define CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ipc/ipc_sender.h" 10 #include "ipc/ipc_sender.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include <windows.h> 13 #include <windows.h>
14 #endif 14 #endif
15 15
16 namespace content { 16 namespace content {
17 17
18 class CONTENT_EXPORT UtilityThread : public IPC::Sender { 18 class CONTENT_EXPORT UtilityThread : public IPC::Sender {
19 public: 19 public:
20 // Returns the one utility thread for this process. Note that this can only 20 // Returns the one utility thread for this process. Note that this can only
21 // be accessed when running on the utility thread itself. 21 // be accessed when running on the utility thread itself.
22 static UtilityThread* Get(); 22 static UtilityThread* Get();
23 23
24 UtilityThread(); 24 UtilityThread();
25 virtual ~UtilityThread(); 25 ~UtilityThread() override;
26 26
27 // Releases the process if we are not (or no longer) in batch mode. 27 // Releases the process if we are not (or no longer) in batch mode.
28 virtual void ReleaseProcessIfNeeded() = 0; 28 virtual void ReleaseProcessIfNeeded() = 0;
29 29
30 #if defined(OS_WIN) 30 #if defined(OS_WIN)
31 // Request that the given font be loaded by the browser so it's cached by the 31 // Request that the given font be loaded by the browser so it's cached by the
32 // OS. Please see ChildProcessHost::PreCacheFont for details. 32 // OS. Please see ChildProcessHost::PreCacheFont for details.
33 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 33 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
34 34
35 // Release cached font. 35 // Release cached font.
36 virtual void ReleaseCachedFonts() = 0; 36 virtual void ReleaseCachedFonts() = 0;
37 #endif 37 #endif
38 }; 38 };
39 39
40 } // namespace content 40 } // namespace content
41 41
42 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ 42 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
OLDNEW
« no previous file with comments | « content/public/test/test_utils.cc ('k') | content/shell/app/shell_crash_reporter_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698