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

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 comments Created 4 years, 1 month 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 3882fa526d254ce6886bdd9ae77b81ed21f32c7a..7e990bf34b1b07d06395e6905a715ac362741e5a 100644
--- a/content/gpu/gpu_child_thread.h
+++ b/content/gpu/gpu_child_thread.h
@@ -45,6 +45,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;
struct EstablishChannelParams;
@@ -167,6 +177,8 @@ class GpuChildThread : public ChildThreadImpl,
mojo::BindingSet<service_manager::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