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

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: Also slip in removing 'aw_' from aw_contents_client_ var name 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
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/common/aw_content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 58%
copy from content/shell/shell_content_client.h
copy to android_webview/common/aw_content_client.h
index 578dddb6828d4d3eb38a2f51cdec683f9a83f887..e0b5c24d2226099fa08869c9dafff7ffe16817be 100644
--- a/content/shell/shell_content_client.h
+++ b/android_webview/common/aw_content_client.h
@@ -2,21 +2,19 @@
// 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 android_webview {
-class ShellContentClient : public ContentClient {
+class AwContentClient : public content::ContentClient {
public:
- virtual ~ShellContentClient();
-
+ // 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 +22,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_
« no previous file with comments | « android_webview/android_webview.gyp ('k') | android_webview/common/aw_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698