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

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: Additional presubmit clean-up. 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/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 55%
copy from content/shell/common/shell_content_client.h
copy to chromecast/shell/common/cast_content_client.h
index 5f9ab2f2ecd56eecc84a8ca0e92cb6967a59f360..2631864db9885a8588ded67f2b836db84148dcdd 100644
--- a/content/shell/common/shell_content_client.h
+++ b/chromecast/shell/common/cast_content_client.h
@@ -1,24 +1,22 @@
-// 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();
+ // content::ContentClient implementation:
virtual std::string GetUserAgent() const OVERRIDE;
virtual base::string16 GetLocalizedString(int message_id) const OVERRIDE;
virtual base::StringPiece GetDataResource(
@@ -29,6 +27,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