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

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

Issue 1875623002: Convert //chromecast from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « chromecast/net/net_util_cast.cc ('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 <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/public/renderer/content_renderer_client.h" 12 #include "content/public/renderer/content_renderer_client.h"
13 13
14 namespace IPC { 14 namespace IPC {
15 class MessageFilter; 15 class MessageFilter;
16 } 16 }
17 17
18 namespace network_hints { 18 namespace network_hints {
19 class PrescientNetworkingDispatcher; 19 class PrescientNetworkingDispatcher;
20 } // namespace network_hints 20 } // namespace network_hints
21 21
22 namespace chromecast { 22 namespace chromecast {
23 namespace shell { 23 namespace shell {
24 class CastRenderProcessObserver; 24 class CastRenderProcessObserver;
25 25
26 class CastContentRendererClient : public content::ContentRendererClient { 26 class CastContentRendererClient : public content::ContentRendererClient {
27 public: 27 public:
28 // Creates an implementation of CastContentRendererClient. Platform should 28 // Creates an implementation of CastContentRendererClient. Platform should
29 // link in an implementation as needed. 29 // link in an implementation as needed.
30 static scoped_ptr<CastContentRendererClient> Create(); 30 static std::unique_ptr<CastContentRendererClient> Create();
31 31
32 ~CastContentRendererClient() override; 32 ~CastContentRendererClient() override;
33 33
34 // ContentRendererClient implementation: 34 // ContentRendererClient implementation:
35 void RenderThreadStarted() override; 35 void RenderThreadStarted() override;
36 void RenderViewCreated(content::RenderView* render_view) override; 36 void RenderViewCreated(content::RenderView* render_view) override;
37 void AddKeySystems( 37 void AddKeySystems(
38 std::vector< ::media::KeySystemInfo>* key_systems) override; 38 std::vector< ::media::KeySystemInfo>* key_systems) override;
39 #if !defined(OS_ANDROID) 39 #if !defined(OS_ANDROID)
40 scoped_ptr<::media::RendererFactory> CreateMediaRendererFactory( 40 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory(
41 content::RenderFrame* render_frame, 41 content::RenderFrame* render_frame,
42 ::media::GpuVideoAcceleratorFactories* gpu_factories, 42 ::media::GpuVideoAcceleratorFactories* gpu_factories,
43 const scoped_refptr<::media::MediaLog>& media_log) override; 43 const scoped_refptr<::media::MediaLog>& media_log) override;
44 #endif 44 #endif
45 blink::WebPrescientNetworking* GetPrescientNetworking() override; 45 blink::WebPrescientNetworking* GetPrescientNetworking() override;
46 void DeferMediaLoad(content::RenderFrame* render_frame, 46 void DeferMediaLoad(content::RenderFrame* render_frame,
47 bool render_frame_has_played_media_before, 47 bool render_frame_has_played_media_before,
48 const base::Closure& closure) override; 48 const base::Closure& closure) override;
49 49
50 protected: 50 protected:
51 CastContentRendererClient(); 51 CastContentRendererClient();
52 52
53 private: 53 private:
54 scoped_ptr<network_hints::PrescientNetworkingDispatcher> 54 std::unique_ptr<network_hints::PrescientNetworkingDispatcher>
55 prescient_networking_dispatcher_; 55 prescient_networking_dispatcher_;
56 scoped_ptr<CastRenderProcessObserver> cast_observer_; 56 std::unique_ptr<CastRenderProcessObserver> cast_observer_;
57 const bool allow_hidden_media_playback_; 57 const bool allow_hidden_media_playback_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); 59 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
60 }; 60 };
61 61
62 } // namespace shell 62 } // namespace shell
63 } // namespace chromecast 63 } // namespace chromecast
64 64
65 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 65 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromecast/net/net_util_cast.cc ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698