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

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

Issue 1327723002: [Chromecast] Raises CastService creation to CastContentBrowserClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: removed unnecessary include Created 5 years, 3 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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chromecast/browser/service/cast_service.h" 9 #include "chromecast/browser/service/cast_service.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 namespace chromecast { 16 namespace chromecast {
17 class CastContentWindow; 17 class CastContentWindow;
18 18
19 class CastServiceSimple : public CastService { 19 class CastServiceSimple : public CastService {
20 public: 20 public:
21 CastServiceSimple(content::BrowserContext* browser_context, 21 CastServiceSimple(content::BrowserContext* browser_context,
22 PrefService* pref_service, 22 PrefService* pref_service);
23 metrics::CastMetricsServiceClient* metrics_service_client);
24 ~CastServiceSimple() override; 23 ~CastServiceSimple() override;
25 24
26 protected: 25 protected:
27 // CastService implementation: 26 // CastService implementation:
28 void InitializeInternal() override; 27 void InitializeInternal() override;
29 void FinalizeInternal() override; 28 void FinalizeInternal() override;
30 void StartInternal() override; 29 void StartInternal() override;
31 void StopInternal() override; 30 void StopInternal() override;
32 31
33 private: 32 private:
34 scoped_ptr<CastContentWindow> window_; 33 scoped_ptr<CastContentWindow> window_;
35 scoped_ptr<content::WebContents> web_contents_; 34 scoped_ptr<content::WebContents> web_contents_;
36 GURL startup_url_; 35 GURL startup_url_;
37 36
38 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); 37 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple);
39 }; 38 };
40 39
41 } // namespace chromecast 40 } // namespace chromecast
42 41
43 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ 42 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_
OLDNEW
« no previous file with comments | « chromecast/browser/service/cast_service_android.cc ('k') | chromecast/browser/service/cast_service_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698