OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 // This class represents the background thread where the utility task runs. | 34 // This class represents the background thread where the utility task runs. |
35 class UtilityThreadImpl : public content::UtilityThread, | 35 class UtilityThreadImpl : public content::UtilityThread, |
36 public ChildThread { | 36 public ChildThread { |
37 public: | 37 public: |
38 UtilityThreadImpl(); | 38 UtilityThreadImpl(); |
39 virtual ~UtilityThreadImpl(); | 39 virtual ~UtilityThreadImpl(); |
40 | 40 |
41 virtual bool Send(IPC::Message* msg) OVERRIDE; | 41 virtual bool Send(IPC::Message* msg) OVERRIDE; |
42 | |
43 virtual void ReleaseProcessIfNeeded() OVERRIDE; | 42 virtual void ReleaseProcessIfNeeded() OVERRIDE; |
| 43 #if defined(OS_WIN) |
| 44 virtual void PreCacheFont(const LOGFONT& log_font) OVERRIDE; |
| 45 virtual void ReleaseCachedFonts() OVERRIDE; |
| 46 #endif |
44 | 47 |
45 private: | 48 private: |
46 // ChildThread implementation. | 49 // ChildThread implementation. |
47 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 50 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
48 | 51 |
49 // IPC message handlers. | 52 // IPC message handlers. |
50 void OnIDBKeysFromValuesAndKeyPath( | 53 void OnIDBKeysFromValuesAndKeyPath( |
51 int id, | 54 int id, |
52 const std::vector<content::SerializedScriptValue>& | 55 const std::vector<content::SerializedScriptValue>& |
53 serialized_script_values, | 56 serialized_script_values, |
(...skipping 10 matching lines...) Expand all Loading... |
64 | 67 |
65 // True when we're running in batch mode. | 68 // True when we're running in batch mode. |
66 bool batch_mode_; | 69 bool batch_mode_; |
67 | 70 |
68 scoped_ptr<webkit_glue::WebKitPlatformSupportImpl> webkit_platform_support_; | 71 scoped_ptr<webkit_glue::WebKitPlatformSupportImpl> webkit_platform_support_; |
69 | 72 |
70 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); | 73 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); |
71 }; | 74 }; |
72 | 75 |
73 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 76 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
OLD | NEW |