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

Unified Diff: content/child/dwrite_font_proxy/dwrite_font_proxy_win.h

Issue 2182213004: Use ChildThreadImpl::thread_safe_sender in font proxy if available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittests Created 4 years, 5 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: content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
diff --git a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
index d6115cdab6e430c31ae085e68d61c906cfd22030..0f2ddd19ea0ac303e10261212315214b0bc1ef3e 100644
--- a/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
+++ b/content/child/dwrite_font_proxy/dwrite_font_proxy_win.h
@@ -64,7 +64,8 @@ class CONTENT_EXPORT DWriteFontCollectionProxy
IDWriteFontFileStream** font_file_stream) override;
HRESULT STDMETHODCALLTYPE
- RuntimeClassInitialize(IDWriteFactory* factory, IPC::Sender* sender_override);
+ RuntimeClassInitialize(IDWriteFactory* factory,
+ const base::Callback<IPC::Sender*(void)>& sender);
void Unregister();
@@ -82,13 +83,11 @@ class CONTENT_EXPORT DWriteFontCollectionProxy
bool CreateFamily(UINT32 family_index);
private:
- IPC::Sender* GetSender();
-
Microsoft::WRL::ComPtr<IDWriteFactory> factory_;
std::vector<Microsoft::WRL::ComPtr<DWriteFontFamilyProxy>> families_;
std::map<base::string16, UINT32> family_names_;
UINT32 family_count_ = UINT_MAX;
- IPC::Sender* sender_override_;
+ base::Callback<IPC::Sender*(void)> sender_;
DISALLOW_ASSIGN(DWriteFontCollectionProxy);
};

Powered by Google App Engine
This is Rietveld 408576698