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

Unified Diff: chrome/service/service_utility_process_host.h

Issue 7866019: New implementation of font precache on Windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix Linux/Mac build break Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/service/service_utility_process_host.h
diff --git a/chrome/service/service_utility_process_host.h b/chrome/service/service_utility_process_host.h
index b3802f9258482d90c21f5fc60af9127c4df66cd0..1412912080645239d51b5e851f1b0ce6670f2a19 100644
--- a/chrome/service/service_utility_process_host.h
+++ b/chrome/service/service_utility_process_host.h
@@ -107,6 +107,9 @@ class ServiceUtilityProcessHost : public ServiceChildProcessHost {
// in a sandbox.
bool StartGetPrinterCapsAndDefaults(const std::string& printer_name);
+ // Getter of unique process id for this process.
+ int unique_process_id();
jam 2011/09/19 16:31:17 no need for this getter since it's only used in th
arthurhsu 2011/09/19 18:22:51 Done.
+
protected:
// Allows this method to be overridden for tests.
virtual FilePath GetUtilityProcessCmd();
@@ -131,6 +134,7 @@ class ServiceUtilityProcessHost : public ServiceChildProcessHost {
#if defined(OS_WIN) // This hack is Windows-specific.
void OnPreCacheFont(const LOGFONT& font);
+ void OnReleaseCachedFonts();
#endif // defined(OS_WIN)
// A pointer to our client interface, who will be informed of progress.
@@ -141,6 +145,8 @@ class ServiceUtilityProcessHost : public ServiceChildProcessHost {
FilePath metafile_path_;
// The temporary folder created for the metafile.
scoped_ptr<ScopedTempDir> scratch_metafile_dir_;
+ // The unique id created for the process.
+ int unique_process_id_;
jam 2011/09/19 16:31:17 nit: this should just be called process_id_ to be
arthurhsu 2011/09/19 18:22:51 Done.
DISALLOW_COPY_AND_ASSIGN(ServiceUtilityProcessHost);
};

Powered by Google App Engine
This is Rietveld 408576698