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

Unified Diff: headless/lib/renderer/headless_content_renderer_client.h

Issue 2780433002: add print to pdf for headless (Closed)
Patch Set: improve comments as suggested Created 3 years, 8 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: headless/lib/renderer/headless_content_renderer_client.h
diff --git a/headless/lib/renderer/headless_content_renderer_client.h b/headless/lib/renderer/headless_content_renderer_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..30a3834e5e85167b13722aa72098e87f73c3a1c8
--- /dev/null
+++ b/headless/lib/renderer/headless_content_renderer_client.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef HEADLESS_LIB_RENDERER_HEADLESS_CONTENT_RENDERER_CLIENT_H_
+#define HEADLESS_LIB_RENDERER_HEADLESS_CONTENT_RENDERER_CLIENT_H_
+
+#include "content/public/renderer/content_renderer_client.h"
+
+namespace headless {
+
+class HeadlessContentRendererClient : public content::ContentRendererClient {
+ public:
+ HeadlessContentRendererClient();
+ ~HeadlessContentRendererClient() override;
+
+ private:
+ void RenderFrameCreated(content::RenderFrame* render_frame) override;
+
+ DISALLOW_COPY_AND_ASSIGN(HeadlessContentRendererClient);
+};
+
+} // namespace headless
+
+#endif // HEADLESS_LIB_RENDERER_HEADLESS_CONTENT_RENDERER_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698