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

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

Issue 10449063: Create default implementations of ContentRendererClient, ContentUtilityClient, and ContentPluginCli… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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_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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_message.h" 11 #include "ipc/ipc_message.h"
12 12
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include <windows.h> 14 #include <windows.h>
15 #endif 15 #endif
16 16
17 namespace content { 17 namespace content {
18 18
19 class CONTENT_EXPORT UtilityThread : public IPC::Message::Sender { 19 class CONTENT_EXPORT UtilityThread : public IPC::Message::Sender {
20 public: 20 public:
21 // Returns the one utility thread for this process. Note that this can only 21 // Returns the one utility thread for this process. Note that this can only
22 // be accessed when running on the utility thread itself. 22 // be accessed when running on the utility thread itself.
23 static UtilityThread* Get(); 23 static UtilityThread* Get();
24 24
25 UtilityThread(); 25 UtilityThread();
26 virtual ~UtilityThread(); 26 virtual ~UtilityThread();
27 27
28 // Releases the process if we are not (or no longer) in batch mode. 28 // Releases the process if we are not (or no longer) in batch mode.
29 virtual void ReleaseProcessIfNeeded() = 0; 29 virtual void ReleaseProcessIfNeeded() = 0;
30 30
31 #if defined(OS_WIN) 31 #if defined(OS_WIN)
32 // Request that the given font be loaded by the browser so it's cached by the 32 // Request that the given font be loaded by the browser so it's cached by the
33 // OS. Please see ChildProcessHost::PreCacheFont for details. 33 // OS. Please see ChildProcessHost::PreCacheFont for details.
34 virtual void PreCacheFont(const LOGFONT& log_font) = 0; 34 virtual void PreCacheFont(const LOGFONT& log_font) = 0;
35 35
36 // Release cached font. 36 // Release cached font.
37 virtual void ReleaseCachedFonts() = 0; 37 virtual void ReleaseCachedFonts() = 0;
38 #endif 38 #endif
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_ 43 #endif // CONTENT_PUBLIC_UTILITY_UTILITY_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698