Chromecast: extracts Linux window creation code to a common place.
[chromium-blink-merge.git] / chromecast / browser / service / cast_service_simple.h
blobf1fb5c8a127dd754171bfc56d254326195559cac
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"
11 namespace content {
12 class WebContents;
15 namespace chromecast {
16 class CastContentWindow;
18 class CastServiceSimple : public CastService {
19 public:
20 CastServiceSimple(content::BrowserContext* browser_context,
21 const OptInStatsChangedCallback& opt_in_stats_callback);
22 virtual ~CastServiceSimple();
24 protected:
25 // CastService implementation:
26 virtual void Initialize() override;
27 virtual void StartInternal() override;
28 virtual void StopInternal() override;
30 private:
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_