Index: android_webview/common/aw_content_client.h |
diff --git a/android_webview/common/aw_content_client.h b/android_webview/common/aw_content_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..46ca79b16bc4f26adc2726e7427df3e45ee217e8 |
--- /dev/null |
+++ b/android_webview/common/aw_content_client.h |
@@ -0,0 +1,44 @@ |
+// Copyright (c) 2012 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 ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ |
+#define ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ |
+ |
+#include "content/public/common/content_client.h" |
+ |
+#include "base/compiler_specific.h" |
+ |
+namespace webkit { |
+namespace npapi { |
+class PluginList; |
+} |
+} |
+ |
+namespace android_webview { |
+ |
+class AwContentClient : public content::ContentClient { |
+ |
boliu
2012/10/08 22:43:43
This unintentionally left as private, but hey, not
joth
2012/10/09 02:00:47
:)
yeah general style is to make them public anyw
boliu
2012/10/09 18:01:47
Done.
|
+ // ContentClient implementation. |
+ virtual void SetActiveURL(const GURL& url) OVERRIDE; |
+ virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; |
+ virtual void AddPepperPlugins( |
+ std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; |
+ virtual void AddNPAPIPlugins( |
+ webkit::npapi::PluginList* plugin_list) OVERRIDE; |
+ virtual void AddAdditionalSchemes( |
+ std::vector<std::string>* standard_schemes, |
+ std::vector<std::string>* savable_schemes) OVERRIDE; |
+ virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; |
+ virtual bool CanHandleWhileSwappedOut(const IPC::Message& message) OVERRIDE; |
+ virtual std::string GetProduct() const OVERRIDE; |
+ virtual std::string GetUserAgent() const OVERRIDE; |
+ virtual string16 GetLocalizedString(int message_id) const OVERRIDE; |
+ virtual base::StringPiece GetDataResource( |
+ int resource_id, |
+ ui::ScaleFactor scale_factor) const OVERRIDE; |
+}; |
+ |
+} // namespace android_webview |
+ |
+#endif // ANDROID_WEBVIEW_COMMON_AW_CONTENT_CLIENT_H_ |