blob: a2331250ce3b2cb2ff8ae81893b90ee7c4fc6974 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// 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 CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
#define CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
#include "base/compiler_specific.h"
#include "content/child/webkitplatformsupport_child_impl.h"
#include "content/common/content_export.h"
#include "ui/base/layout.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 WebKitPlatformSupportChildImpl) {
public:
typedef blink::WebGraphicsContext3D* (OffscreenContextFactory)();
WebKitPlatformSupportImpl();
virtual ~WebKitPlatformSupportImpl();
virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
virtual base::StringPiece GetDataResource(
int resource_id,
ui::ScaleFactor scale_factor) OVERRIDE;
virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
OVERRIDE;
virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketStreamBridge(
blink::WebSocketStreamHandle* handle,
webkit_glue::WebSocketStreamHandleDelegate* delegate) OVERRIDE;
virtual blink::WebSocketHandle* createWebSocketHandle() OVERRIDE;
};
} // namespace content
#endif // CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
|