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

Side by Side Diff: chrome/service/service_utility_process_host.h

Issue 8759013: Dispatch the Windows font caching IPCs in one filter. This avoids having the code that calls thos... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « no previous file | chrome/service/service_utility_process_host.cc » ('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) 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
11 #if defined(OS_WIN)
12 #include <windows.h>
13 #endif // defined(OS_WIN)
14
15 #include <string> 11 #include <string>
16 #include <vector> 12 #include <vector>
17 13
18 #include "base/basictypes.h" 14 #include "base/basictypes.h"
19 #include "base/file_path.h" 15 #include "base/file_path.h"
20 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
21 #include "base/task.h" 17 #include "base/task.h"
22 #include "ipc/ipc_channel.h" 18 #include "ipc/ipc_channel.h"
23 #include "chrome/service/service_child_process_host.h" 19 #include "chrome/service/service_child_process_host.h"
24 #include "printing/pdf_render_settings.h" 20 #include "printing/pdf_render_settings.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void OnRenderPDFPagesToMetafileFailed(); 120 void OnRenderPDFPagesToMetafileFailed();
125 // Called when the printer capabilities and defaults have been 121 // Called when the printer capabilities and defaults have been
126 // retrieved successfully. 122 // retrieved successfully.
127 void OnGetPrinterCapsAndDefaultsSucceeded( 123 void OnGetPrinterCapsAndDefaultsSucceeded(
128 const std::string& printer_name, 124 const std::string& printer_name,
129 const printing::PrinterCapsAndDefaults& caps_and_defaults); 125 const printing::PrinterCapsAndDefaults& caps_and_defaults);
130 // Called when the printer capabilities and defaults could not be 126 // Called when the printer capabilities and defaults could not be
131 // retrieved successfully. 127 // retrieved successfully.
132 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name); 128 void OnGetPrinterCapsAndDefaultsFailed(const std::string& printer_name);
133 129
134 #if defined(OS_WIN) // This hack is Windows-specific.
135 void OnPreCacheFont(const LOGFONT& font);
136 void OnReleaseCachedFonts();
137 #endif // defined(OS_WIN)
138
139 // A pointer to our client interface, who will be informed of progress. 130 // A pointer to our client interface, who will be informed of progress.
140 scoped_refptr<Client> client_; 131 scoped_refptr<Client> client_;
141 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_; 132 scoped_refptr<base::MessageLoopProxy> client_message_loop_proxy_;
142 bool waiting_for_reply_; 133 bool waiting_for_reply_;
143 // The path to the temp file where the metafile will be written to. 134 // The path to the temp file where the metafile will be written to.
144 FilePath metafile_path_; 135 FilePath metafile_path_;
145 // The temporary folder created for the metafile. 136 // The temporary folder created for the metafile.
146 scoped_ptr<ScopedTempDir> scratch_metafile_dir_; 137 scoped_ptr<ScopedTempDir> scratch_metafile_dir_;
147 // The unique id created for the process.
148 int process_id_;
149 138
150 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost); 139 DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost);
151 }; 140 };
152 141
153 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_ 142 #endif // CHROME_SERVICE_SERVICE_UTILITY_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/service/service_utility_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698