Support horizontal/vertical only images in NineImagePainter.
[chromium-blink-merge.git] / chromecast / renderer / cast_content_renderer_client.h
blob1f61b0690438962835de1b56022ed0712a71d2ae
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
6 #define CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
8 #include "base/macros.h"
9 #include "content/public/renderer/content_renderer_client.h"
11 namespace dns_prefetch {
12 class PrescientNetworkingDispatcher;
13 } // namespace dns_prefetch
15 namespace chromecast {
16 namespace shell {
18 class CastContentRendererClient : public content::ContentRendererClient {
19 public:
20 CastContentRendererClient();
21 ~CastContentRendererClient() override;
23 // ContentRendererClient implementation:
24 void RenderThreadStarted() override;
25 void RenderViewCreated(content::RenderView* render_view) override;
26 void AddKeySystems(
27 std::vector< ::media::KeySystemInfo>* key_systems) override;
28 blink::WebPrescientNetworking* GetPrescientNetworking() override;
30 private:
31 scoped_ptr<dns_prefetch::PrescientNetworkingDispatcher>
32 prescient_networking_dispatcher_;
34 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
37 } // namespace shell
38 } // namespace chromecast
40 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_