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

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: address grt's 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 8d10a630c7f5196cff5a4c316f04022ba7be0ec1..78ddf09f785c4f7464d935c2c64f36367fc4320d 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -45,6 +45,11 @@ 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 GpuWatchdogThread;
struct EstablishChannelParams;
@@ -170,6 +175,8 @@ class GpuChildThread : public ChildThreadImpl,
// Bindings to the mojom::ProcessControl impl.
mojo::BindingSet<mojom::ProcessControl> process_control_bindings_;
+ std::unique_ptr<GpuProcessLogMessageListener> log_listener_;
+
DISALLOW_COPY_AND_ASSIGN(GpuChildThread);
};

Powered by Google App Engine
This is Rietveld 408576698