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

Unified Diff: content/browser/renderer_host/sandbox_ipc_linux.h

Issue 2833973003: Initialize FontConfigIPC when zygote is disabled so font fallback works. (Closed)
Patch Set: Make test TSan clean. Created 3 years, 7 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/browser/renderer_host/sandbox_ipc_linux.h
diff --git a/content/browser/renderer_host/sandbox_ipc_linux.h b/content/browser/renderer_host/sandbox_ipc_linux.h
index 3d9e98de331ba0d525499f2b1fd1b54f77e4afdb..ba59b8f978ceab8652d830f958475135ebcb19c6 100644
--- a/content/browser/renderer_host/sandbox_ipc_linux.h
+++ b/content/browser/renderer_host/sandbox_ipc_linux.h
@@ -8,12 +8,15 @@
#define CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_
#include <memory>
+#include <string>
#include <vector>
#include "base/files/scoped_file.h"
#include "base/macros.h"
#include "base/pickle.h"
#include "base/threading/simple_thread.h"
+#include "content/common/content_export.h"
+#include "third_party/icu/source/common/unicode/uchar.h"
class SkString;
@@ -29,6 +32,15 @@ class SandboxIPCHandler : public base::DelegateSimpleThread::Delegate {
void Run() override;
+ class TestObserver {
+ public:
+ virtual void OnGetFallbackFontForChar(UChar32 c,
+ std::string name,
+ int id) = 0;
+ virtual void OnFontOpen(int id) = 0;
+ };
+ CONTENT_EXPORT static void SetObserverForTests(TestObserver* observer);
+
private:
int FindOrAddPath(const SkString& path);
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/sandbox_ipc_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698