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 CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 5 #ifndef CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 6 #define CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // IPC messages: | 124 // IPC messages: |
125 virtual bool OnMessageReceived(const IPC::Message& message); | 125 virtual bool OnMessageReceived(const IPC::Message& message); |
126 // Called when at least one page in the specified PDF has been rendered | 126 // Called when at least one page in the specified PDF has been rendered |
127 // successfully into metafile_path_; | 127 // successfully into metafile_path_; |
128 void OnRenderPDFPagesToMetafileSucceeded(int highest_rendered_page_number); | 128 void OnRenderPDFPagesToMetafileSucceeded(int highest_rendered_page_number); |
129 // Any other messages to be handled by the client. | 129 // Any other messages to be handled by the client. |
130 bool MessageForClient(const IPC::Message& message); | 130 bool MessageForClient(const IPC::Message& message); |
131 | 131 |
132 #if defined(OS_WIN) // This hack is Windows-specific. | 132 #if defined(OS_WIN) // This hack is Windows-specific. |
133 void OnPreCacheFont(const LOGFONT& font); | 133 void OnPreCacheFont(const LOGFONT& font); |
| 134 void OnReleaseCachedFonts(); |
134 #endif // defined(OS_WIN) | 135 #endif // defined(OS_WIN) |
135 | 136 |
136 // A pointer to our client interface, who will be informed of progress. | 137 // A pointer to our client interface, who will be informed of progress. |
137 scoped_refptr<Client> client_; | 138 scoped_refptr<Client> client_; |
138 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_; | 139 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_; |
139 bool waiting_for_reply_; | 140 bool waiting_for_reply_; |
140 // The path to the temp file where the metafile will be written to. | 141 // The path to the temp file where the metafile will be written to. |
141 FilePath metafile_path_; | 142 FilePath metafile_path_; |
142 // The temporary folder created for the metafile. | 143 // The temporary folder created for the metafile. |
143 scoped_ptr<ScopedTempDir> scratch_metafile_dir_; | 144 scoped_ptr<ScopedTempDir> scratch_metafile_dir_; |
144 | 145 |
145 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); | 146 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); |
146 }; | 147 }; |
147 | 148 |
148 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ | 149 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ |
OLD | NEW |