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_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_
6 #define CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chromecast/browser/service/cast_service.h"
15 namespace chromecast
{
16 class CastContentWindow
;
18 class CastServiceSimple
: public CastService
{
20 CastServiceSimple(content::BrowserContext
* browser_context
,
21 const OptInStatsChangedCallback
& opt_in_stats_callback
);
22 virtual ~CastServiceSimple();
25 // CastService implementation:
26 virtual void Initialize() override
;
27 virtual void StartInternal() override
;
28 virtual void StopInternal() override
;
31 scoped_ptr
<CastContentWindow
> window_
;
32 scoped_ptr
<content::WebContents
> web_contents_
;
34 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple
);
37 } // namespace chromecast
39 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_