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

Side by Side Diff: chromecast/renderer/cast_content_renderer_client.h

Issue 785693002: Adds DNS prefetch support to Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetch-browser
Patch Set: add blink dep to gyp/gn Created 6 years 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 unified diff | Download patch
« no previous file with comments | « chromecast/renderer/DEPS ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
6 #define CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include "base/macros.h"
8 #include "content/public/renderer/content_renderer_client.h" 9 #include "content/public/renderer/content_renderer_client.h"
9 10
11 namespace dns_prefetch {
12 class PrescientNetworkingDispatcher;
13 } // namespace dns_prefetch
14
10 namespace chromecast { 15 namespace chromecast {
11 namespace shell { 16 namespace shell {
12 17
13 class CastContentRendererClient : public content::ContentRendererClient { 18 class CastContentRendererClient : public content::ContentRendererClient {
14 public: 19 public:
15 CastContentRendererClient() {} 20 CastContentRendererClient();
16 virtual ~CastContentRendererClient() {} 21 ~CastContentRendererClient() override;
17 22
18 // ContentRendererClient implementation: 23 // ContentRendererClient implementation:
19 virtual void RenderThreadStarted() override; 24 void RenderThreadStarted() override;
20 virtual void RenderViewCreated(content::RenderView* render_view) override; 25 void RenderViewCreated(content::RenderView* render_view) override;
21 virtual void AddKeySystems( 26 void AddKeySystems(
22 std::vector< ::media::KeySystemInfo>* key_systems) override; 27 std::vector< ::media::KeySystemInfo>* key_systems) override;
28 blink::WebPrescientNetworking* GetPrescientNetworking() override;
29
30 private:
31 scoped_ptr<dns_prefetch::PrescientNetworkingDispatcher>
32 prescient_networking_dispatcher_;
33
34 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
23 }; 35 };
24 36
25 } // namespace shell 37 } // namespace shell
26 } // namespace chromecast 38 } // namespace chromecast
27 39
28 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 40 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromecast/renderer/DEPS ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698