summaryrefslogtreecommitdiffstats
path: root/chromecast/service/cast_service_simple.h
blob: 8ebfc06764a89de5750a231119deb83bf1624a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright 2014 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 CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_
#define CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_

#include "base/memory/scoped_ptr.h"
#include "chromecast/service/cast_service.h"

namespace aura {
class WindowTreeHost;
}

namespace content {
class WebContents;
}

namespace chromecast {

class CastServiceSimple : public CastService {
 public:
  CastServiceSimple(content::BrowserContext* browser_context,
                    const OptInStatsChangedCallback& opt_in_stats_callback);
  virtual ~CastServiceSimple();

 protected:
  // CastService implementation:
  virtual void Initialize() OVERRIDE;
  virtual void StartInternal() OVERRIDE;
  virtual void StopInternal() OVERRIDE;

 private:
  scoped_ptr<aura::WindowTreeHost> window_tree_host_;
  scoped_ptr<content::WebContents> web_contents_;

  DISALLOW_COPY_AND_ASSIGN(CastServiceSimple);
};

}  // namespace chromecast

#endif  // CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_