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

Side by Side Diff: content/child/webkitplatformsupport_impl.h

Issue 207603003: Extract RequestInfo struct from ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/child/webkitplatformsupport_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/child/webkitplatformsupport_child_impl.h" 9 #include "content/child/webkitplatformsupport_child_impl.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ui/base/layout.h" 11 #include "ui/base/layout.h"
12 12
13 namespace content { 13 namespace content {
14 class WebCryptoImpl; 14 class WebCryptoImpl;
15 15
16 // This is a specialization of WebKitPlatformSupportImpl that implements the 16 // This is a specialization of WebKitPlatformSupportChildImpl that implements
17 // embedder functions in terms of ContentClient. 17 // the embedder functions in terms of ContentClient.
18 class CONTENT_EXPORT WebKitPlatformSupportImpl 18 class CONTENT_EXPORT WebKitPlatformSupportImpl
19 : NON_EXPORTED_BASE(public WebKitPlatformSupportChildImpl) { 19 : NON_EXPORTED_BASE(public WebKitPlatformSupportChildImpl) {
20 public: 20 public:
21 typedef blink::WebGraphicsContext3D* (OffscreenContextFactory)(); 21 typedef blink::WebGraphicsContext3D* (OffscreenContextFactory)();
22 22
23 WebKitPlatformSupportImpl(); 23 WebKitPlatformSupportImpl();
24 virtual ~WebKitPlatformSupportImpl(); 24 virtual ~WebKitPlatformSupportImpl();
25 25
26 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE; 26 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
27 virtual base::StringPiece GetDataResource( 27 virtual base::StringPiece GetDataResource(
28 int resource_id, 28 int resource_id,
29 ui::ScaleFactor scale_factor) OVERRIDE; 29 ui::ScaleFactor scale_factor) OVERRIDE;
30 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 30 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
31 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 31 const RequestInfo& request_info) OVERRIDE;
32 OVERRIDE;
33 virtual WebSocketStreamHandleBridge* CreateWebSocketStreamBridge( 32 virtual WebSocketStreamHandleBridge* CreateWebSocketStreamBridge(
34 blink::WebSocketStreamHandle* handle, 33 blink::WebSocketStreamHandle* handle,
35 WebSocketStreamHandleDelegate* delegate) OVERRIDE; 34 WebSocketStreamHandleDelegate* delegate) OVERRIDE;
36 virtual blink::WebSocketHandle* createWebSocketHandle() OVERRIDE; 35 virtual blink::WebSocketHandle* createWebSocketHandle() OVERRIDE;
37 virtual blink::WebCrypto* crypto() OVERRIDE; 36 virtual blink::WebCrypto* crypto() OVERRIDE;
38 37
39 private: 38 private:
40 scoped_ptr<WebCryptoImpl> web_crypto_; 39 scoped_ptr<WebCryptoImpl> web_crypto_;
41 }; 40 };
42 41
43 } // namespace content 42 } // namespace content
44 43
45 #endif // CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_ 44 #endif // CONTENT_CHILD_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/child/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698