We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / chromecast / browser / service / cast_service_simple.h
blob8ce5a13484a5f60bfa499c28aaf2d49f5075ebc6
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"
10 #include "url/gurl.h"
12 namespace content {
13 class WebContents;
16 namespace chromecast {
17 class CastContentWindow;
19 class CastServiceSimple : public CastService {
20 public:
21 CastServiceSimple(content::BrowserContext* browser_context,
22 PrefService* pref_service,
23 metrics::CastMetricsServiceClient* metrics_service_client);
24 ~CastServiceSimple() override;
26 protected:
27 // CastService implementation:
28 void InitializeInternal() override;
29 void FinalizeInternal() override;
30 void StartInternal() override;
31 void StopInternal() override;
33 private:
34 scoped_ptr<CastContentWindow> window_;
35 scoped_ptr<content::WebContents> web_contents_;
36 GURL startup_url_;
38 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple);
41 } // namespace chromecast
43 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_