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

Unified Diff: android_webview/common/aw_content_client.h

Issue 11017024: Implement AwContentsClient and remove dependency on chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert unrelated ua change since it depends on override logic. Created 8 years, 2 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: android_webview/common/aw_content_client.h
diff --git a/content/shell/shell_content_client.h b/android_webview/common/aw_content_client.h
similarity index 55%
copy from content/shell/shell_content_client.h
copy to android_webview/common/aw_content_client.h
index 578dddb6828d4d3eb38a2f51cdec683f9a83f887..0d0ad004a69b1f0f3237160c17b9e060cfcf1434 100644
--- a/content/shell/shell_content_client.h
+++ b/android_webview/common/aw_content_client.h
@@ -2,21 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_
-#define CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_
+#ifndef ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_
+#define ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_
-#include <string>
-#include <vector>
+#include "content/public/common/content_client.h"
#include "base/compiler_specific.h"
-#include "content/public/common/content_client.h"
-namespace content {
+namespace webkit {
+namespace npapi {
+class PluginList;
+}
+}
-class ShellContentClient : public ContentClient {
- public:
- virtual ~ShellContentClient();
+namespace android_webview {
+class AwContentClient : public content::ContentClient {
+ public:
+ // ContentClient implementation.
+ virtual std::string GetProduct() const OVERRIDE;
virtual std::string GetUserAgent() const OVERRIDE;
virtual string16 GetLocalizedString(int message_id) const OVERRIDE;
virtual base::StringPiece GetDataResource(
@@ -24,6 +28,6 @@ class ShellContentClient : public ContentClient {
ui::ScaleFactor scale_factor) const OVERRIDE;
};
-} // namespace content
+} // namespace android_webview
-#endif // CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_
+#endif // ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698