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

Unified Diff: content/gpu/gpu_child_thread.h

Issue 2034393004: Allow multiple logging::LogMessage{Handler,Listener}s Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use ReadWriteLock, add comments Created 4 years, 4 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/gpu/gpu_child_thread.h
diff --git a/content/gpu/gpu_child_thread.h b/content/gpu/gpu_child_thread.h
index 853972be6f37eed44effa21fde8b6a5ef6fa5129..225e961329aea36363b4733f276fd2537369c7d4 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -44,6 +44,16 @@ class TargetServices;
}
namespace content {
+class GpuProcessControlImpl;
+class GpuProcessLogMessageListener : logging::LogMessageListener {
+ public:
+ void OnMessage(int severity,
+ const char* file,
+ int line,
+ size_t message_start,
+ const std::string& str) override;
+};
+
class GpuServiceFactory;
class GpuWatchdogThread;
struct EstablishChannelParams;
@@ -170,6 +180,8 @@ class GpuChildThread : public ChildThreadImpl,
// Bindings to the shell::mojom::ServiceFactory impl.
mojo::BindingSet<shell::mojom::ServiceFactory> service_factory_bindings_;
+ std::unique_ptr<GpuProcessLogMessageListener> log_listener_;
+
DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
};

Powered by Google App Engine
This is Rietveld 408576698