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

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: addressing damienv's comments 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
« no previous file with comments | « chromecast/service/cast_service.cc ('k') | chromecast/service/cast_service_simple.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..40c037c4bc4c1249df5c2d5028445887ceb442b6
--- /dev/null
+++ b/chromecast/service/cast_service_simple.h
@@ -0,0 +1,41 @@
+// 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:
+ // CastService implementation.
+ 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_
« no previous file with comments | « chromecast/service/cast_service.cc ('k') | chromecast/service/cast_service_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698