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

Unified Diff: content/common/webkitplatformsupport_impl.h

Issue 8602002: Move some webkit_glue embedder functions into WebKitPlatformSupport virtual methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright year Created 9 years, 1 month 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: content/common/webkitplatformsupport_impl.h
diff --git a/content/common/webkitplatformsupport_impl.h b/content/common/webkitplatformsupport_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..1904042cf26b9a8933b76dbbc1c904778db1862c
--- /dev/null
+++ b/content/common/webkitplatformsupport_impl.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_
+#define CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "content/common/content_export.h"
+#include "webkit/glue/webkitplatformsupport_impl.h"
+
+namespace content {
+
+// This is a specialization of WebKitPlatformSupportImpl that implements the
+// embedder functions in terms of ContentClient.
+class CONTENT_EXPORT WebKitPlatformSupportImpl
+ : NON_EXPORTED_BASE(public webkit_glue::WebKitPlatformSupportImpl) {
+ public:
+ WebKitPlatformSupportImpl();
+ virtual ~WebKitPlatformSupportImpl();
+
+ virtual string16 GetLocalizedString(int message_id) OVERRIDE;
+ virtual base::StringPiece GetDataResource(int resource_id) OVERRIDE;
+ virtual void GetPlugins(bool refresh,
+ std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
+ virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
+ const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
+ OVERRIDE;
+ virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
+ WebKit::WebSocketStreamHandle* handle,
+ webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_CONTENT_WEBKITPLATFORMSUPPORT_IMPL_H_
+
« no previous file with comments | « content/browser/renderer_host/render_sandbox_host_linux.cc ('k') | content/common/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698