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

Side by Side Diff: content/utility/utility_thread_impl.h

Issue 11363008: Fix for 128506: Random Chinese/Japanese characters are missing in documents printed via the syst... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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_UTILITY_UTILITY_THREAD_IMPL_H_ 5 #ifndef CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ 6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 class UtilityThreadImpl : public content::UtilityThread, 24 class UtilityThreadImpl : public content::UtilityThread,
25 public ChildThread { 25 public ChildThread {
26 public: 26 public:
27 UtilityThreadImpl(); 27 UtilityThreadImpl();
28 virtual ~UtilityThreadImpl(); 28 virtual ~UtilityThreadImpl();
29 29
30 virtual bool Send(IPC::Message* msg) OVERRIDE; 30 virtual bool Send(IPC::Message* msg) OVERRIDE;
31 virtual void ReleaseProcessIfNeeded() OVERRIDE; 31 virtual void ReleaseProcessIfNeeded() OVERRIDE;
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; 33 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE;
34 virtual void PreCacheFontCharacters(const LOGFONT& log_font,
35 const std::wstring& str) OVERRIDE;
34 virtual void ReleaseCachedFonts() OVERRIDE; 36 virtual void ReleaseCachedFonts() OVERRIDE;
35 #endif 37 #endif
36 38
37 private: 39 private:
38 // ChildThread implementation. 40 // ChildThread implementation.
39 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 41 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
40 42
41 // IPC message handlers. 43 // IPC message handlers.
42 void OnBatchModeStarted(); 44 void OnBatchModeStarted();
43 void OnBatchModeFinished(); 45 void OnBatchModeFinished();
44 46
45 #if defined(OS_POSIX) 47 #if defined(OS_POSIX)
46 void OnLoadPlugins(const std::vector<FilePath>& plugin_paths); 48 void OnLoadPlugins(const std::vector<FilePath>& plugin_paths);
47 #endif // OS_POSIX 49 #endif // OS_POSIX
48 50
49 // True when we're running in batch mode. 51 // True when we're running in batch mode.
50 bool batch_mode_; 52 bool batch_mode_;
51 53
52 scoped_ptr<content::WebKitPlatformSupportImpl> webkit_platform_support_; 54 scoped_ptr<content::WebKitPlatformSupportImpl> webkit_platform_support_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); 56 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl);
55 }; 57 };
56 58
57 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ 59 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698