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

Unified Diff: chromecast/shell/common/cast_content_client.h

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ScreenCast code and stale comments. Created 6 years, 6 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/shell/common/cast_content_client.h
diff --git a/content/shell/common/shell_content_client.h b/chromecast/shell/common/cast_content_client.h
similarity index 56%
copy from content/shell/common/shell_content_client.h
copy to chromecast/shell/common/cast_content_client.h
index 5f9ab2f2ecd56eecc84a8ca0e92cb6967a59f360..5934894cabdb44211179cf119fe38ce28f7ed08c 100644
--- a/content/shell/common/shell_content_client.h
+++ b/chromecast/shell/common/cast_content_client.h
@@ -1,23 +1,20 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// 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 CONTENT_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
-#define CONTENT_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
+#ifndef CHROMECAST_SHELL_COMMON_CAST_CONTENT_CLIENT_H_
+#define CHROMECAST_SHELL_COMMON_CAST_CONTENT_CLIENT_H_
-#include <string>
-#include <vector>
-
-#include "base/compiler_specific.h"
#include "content/public/common/content_client.h"
-namespace content {
+namespace chromecast {
+namespace shell {
-std::string GetShellUserAgent();
+std::string GetUserAgent();
-class ShellContentClient : public ContentClient {
+class CastContentClient : public content::ContentClient {
public:
- virtual ~ShellContentClient();
+ virtual ~CastContentClient();
virtual std::string GetUserAgent() const OVERRIDE;
virtual base::string16 GetLocalizedString(int message_id) const OVERRIDE;
@@ -29,6 +26,7 @@ class ShellContentClient : public ContentClient {
virtual gfx::Image& GetNativeImageNamed(int resource_id) const OVERRIDE;
};
-} // namespace content
+} // namespace shell
+} // namespace chromecast
-#endif // CONTENT_SHELL_COMMON_SHELL_CONTENT_CLIENT_H_
+#endif // CHROMECAST_SHELL_COMMON_CAST_CONTENT_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698