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

Unified Diff: chromecast/service/cast_service_simple.h

Issue 397143003: Build-level separation of default CastService implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromecast-resource-fix
Patch Set: copyright capitalization Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/service/cast_service_simple.h
diff --git a/chromecast/service/cast_service_simple.h b/chromecast/service/cast_service_simple.h
new file mode 100644
index 0000000000000000000000000000000000000000..55065b73f03dc577f2d04e9ef49e001e03dca216
--- /dev/null
+++ b/chromecast/service/cast_service_simple.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_
+#define CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "chromecast/service/cast_service.h"
+
+namespace aura {
+class WindowTreeHost;
+}
+
+namespace content {
+class WebContents;
+}
+
+namespace chromecast {
+
+class CastServiceSimple : public CastService {
+ public:
+ explicit CastServiceSimple(content::BrowserContext* browser_context);
+ virtual ~CastServiceSimple();
+
+ protected:
damienv1 2014/07/17 00:02:39 Should have the usual comment: // CastService imp
gunsch 2014/07/17 04:33:37 Done.
+ virtual void Initialize() OVERRIDE;
+ virtual void StartInternal() OVERRIDE;
+ virtual void StopInternal() OVERRIDE;
+
+ private:
+ scoped_ptr<aura::WindowTreeHost> window_tree_host_;
+ scoped_ptr<content::WebContents> web_contents_;
+
+ DISALLOW_COPY_AND_ASSIGN(CastServiceSimple);
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_SERVICE_CAST_SERVICE_SIMPLE_H_

Powered by Google App Engine
This is Rietveld 408576698