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

Side by Side Diff: chromecast/browser/service/cast_service_simple.h

Issue 2428383007: [Chromecast] Add input support. (Closed)
Patch Set: Created 4 years, 2 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
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_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ 5 #ifndef CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_
6 #define CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ 6 #define CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chromecast/service/cast_service.h" 11 #include "chromecast/service/cast_service.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace content { 14 namespace content {
15 class WebContents; 15 class WebContents;
16 } 16 }
17 17
18 namespace chromecast { 18 namespace chromecast {
19 namespace shell { 19 namespace shell {
20 class CastContentWindow; 20 class CastContentWindow;
21 class CastWindowManager;
21 22
22 class CastServiceSimple : public CastService { 23 class CastServiceSimple : public CastService {
23 public: 24 public:
24 CastServiceSimple(content::BrowserContext* browser_context, 25 CastServiceSimple(content::BrowserContext* browser_context,
25 PrefService* pref_service); 26 PrefService* pref_service,
27 CastWindowManager* cast_window_manager);
26 ~CastServiceSimple() override; 28 ~CastServiceSimple() override;
27 29
28 protected: 30 protected:
29 // CastService implementation: 31 // CastService implementation:
30 void InitializeInternal() override; 32 void InitializeInternal() override;
31 void FinalizeInternal() override; 33 void FinalizeInternal() override;
32 void StartInternal() override; 34 void StartInternal() override;
33 void StopInternal() override; 35 void StopInternal() override;
34 36
35 private: 37 private:
38 CastWindowManager* cast_window_manager_;
36 std::unique_ptr<CastContentWindow> window_; 39 std::unique_ptr<CastContentWindow> window_;
37 std::unique_ptr<content::WebContents> web_contents_; 40 std::unique_ptr<content::WebContents> web_contents_;
38 GURL startup_url_; 41 GURL startup_url_;
39 42
40 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); 43 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple);
41 }; 44 };
42 45
43 } // namespace shell 46 } // namespace shell
44 } // namespace chromecast 47 } // namespace chromecast
45 48
46 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ 49 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698