Disable signin-to-Chrome when using Guest profile.
[chromium-blink-merge.git] / content / child / webkitplatformsupport_impl.h
blob8eb60dd4d2d5986f96f29aa3b2735c2b2ac86067
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
8 #include "base/compiler_specific.h"
9 #include "content/child/webkitplatformsupport_child_impl.h"
10 #include "content/common/content_export.h"
11 #include "ui/base/layout.h"
13 namespace content {
14 class WebCryptoImpl;
16 // This is a specialization of WebKitPlatformSupportImpl that implements the
17 // embedder functions in terms of ContentClient.
18 class CONTENT_EXPORT WebKitPlatformSupportImpl
19 : NON_EXPORTED_BASE(public WebKitPlatformSupportChildImpl) {
20 public:
21 typedef blink::WebGraphicsContext3D* (OffscreenContextFactory)();
23 WebKitPlatformSupportImpl();
24 virtual ~WebKitPlatformSupportImpl();
26 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
27 virtual base::StringPiece GetDataResource(
28 int resource_id,
29 ui::ScaleFactor scale_factor) OVERRIDE;
30 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
31 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
32 OVERRIDE;
33 virtual WebSocketStreamHandleBridge* CreateWebSocketStreamBridge(
34 blink::WebSocketStreamHandle* handle,
35 WebSocketStreamHandleDelegate* delegate) OVERRIDE;
36 virtual blink::WebSocketHandle* createWebSocketHandle() OVERRIDE;
37 virtual blink::WebCrypto* crypto() OVERRIDE;
39 private:
40 scoped_ptr<WebCryptoImpl> web_crypto_;
43 } // namespace content
45 #endif // CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_