summaryrefslogtreecommitdiffstats
path: root/blimp/engine/app/blimp_content_renderer_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'blimp/engine/app/blimp_content_renderer_client.h')
-rw-r--r--blimp/engine/app/blimp_content_renderer_client.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/blimp/engine/app/blimp_content_renderer_client.h b/blimp/engine/app/blimp_content_renderer_client.h
new file mode 100644
index 0000000..56e9cc0
--- /dev/null
+++ b/blimp/engine/app/blimp_content_renderer_client.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2015 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 BLIMP_ENGINE_APP_BLIMP_CONTENT_RENDERER_CLIENT_H_
+#define BLIMP_ENGINE_APP_BLIMP_CONTENT_RENDERER_CLIENT_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/public/renderer/content_renderer_client.h"
+
+namespace web_cache {
+class WebCacheRenderProcessObserver;
+}
+
+namespace blimp {
+namespace engine {
+
+class BlimpContentRendererClient : public content::ContentRendererClient {
+ public:
+ BlimpContentRendererClient();
+ ~BlimpContentRendererClient() override;
+
+ // content::ContentRendererClient implementation.
+ void RenderThreadStarted() override;
+
+ private:
+ // This observer manages the process-global web cache.
+ scoped_ptr<web_cache::WebCacheRenderProcessObserver> web_cache_observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpContentRendererClient);
+};
+
+} // namespace engine
+} // namespace blimp
+
+#endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_RENDERER_CLIENT_H_