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

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

Issue 853073003: Fix assertion starting cast_shell (breaking thread IO restrictions). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace fixes plus task is not slow Created 5 years, 11 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 11
11 namespace content { 12 namespace content {
12 class WebContents; 13 class WebContents;
13 } 14 }
14 15
15 namespace chromecast { 16 namespace chromecast {
16 class CastContentWindow; 17 class CastContentWindow;
17 18
18 class CastServiceSimple : public CastService { 19 class CastServiceSimple : public CastService {
19 public: 20 public:
20 CastServiceSimple(content::BrowserContext* browser_context, 21 CastServiceSimple(content::BrowserContext* browser_context,
21 PrefService* pref_service, 22 PrefService* pref_service,
22 metrics::CastMetricsServiceClient* metrics_service_client); 23 metrics::CastMetricsServiceClient* metrics_service_client);
23 ~CastServiceSimple() override; 24 ~CastServiceSimple() override;
24 25
25 protected: 26 protected:
26 // CastService implementation: 27 // CastService implementation:
27 void InitializeInternal() override; 28 void InitializeInternal() override;
28 void FinalizeInternal() override; 29 void FinalizeInternal() override;
29 void StartInternal() override; 30 void StartInternal() override;
30 void StopInternal() override; 31 void StopInternal() override;
31 32
32 private: 33 private:
33 scoped_ptr<CastContentWindow> window_; 34 scoped_ptr<CastContentWindow> window_;
34 scoped_ptr<content::WebContents> web_contents_; 35 scoped_ptr<content::WebContents> web_contents_;
36 GURL startup_url_;
35 37
36 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple); 38 DISALLOW_COPY_AND_ASSIGN(CastServiceSimple);
37 }; 39 };
38 40
39 } // namespace chromecast 41 } // namespace chromecast
40 42
41 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_ 43 #endif // CHROMECAST_BROWSER_SERVICE_CAST_SERVICE_SIMPLE_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/service/cast_service_simple.cc » ('j') | ui/events/ozone/device/device_manager_manual.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698