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

Side by Side Diff: android_webview/renderer/aw_content_renderer_client.h

Issue 13135004: android_webview: changes to support Android GraphicBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing a few cases where GraphicBuffer was used Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include "content/public/renderer/content_renderer_client.h" 8 #include "content/public/renderer/content_renderer_client.h"
9 9
10 #include "android_webview/renderer/aw_render_process_observer.h"
10 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
11 #include "android_webview/renderer/aw_render_process_observer.h" 12 #include "ui/gl/pixel_buffer.h"
12 13
13 namespace components { 14 namespace components {
14 class VisitedLinkSlave; 15 class VisitedLinkSlave;
15 } // namespace components 16 } // namespace components
16 17
17 namespace android_webview { 18 namespace android_webview {
18 19
19 class AwContentRendererClient : public content::ContentRendererClient { 20 class AwContentRendererClient : public content::ContentRendererClient {
20 public: 21 public:
21 typedef MessageLoop* CompositorMessageLoopGetter(); 22 typedef MessageLoop* CompositorMessageLoopGetter();
(...skipping 13 matching lines...) Expand all
35 const WebKit::WebURLRequest& failed_request, 36 const WebKit::WebURLRequest& failed_request,
36 const WebKit::WebURLError& error, 37 const WebKit::WebURLError& error,
37 std::string* error_html, 38 std::string* error_html,
38 string16* error_description) OVERRIDE; 39 string16* error_description) OVERRIDE;
39 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 40 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
40 size_t length) OVERRIDE; 41 size_t length) OVERRIDE;
41 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; 42 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE;
42 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; 43 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE;
43 virtual MessageLoop* OverrideCompositorMessageLoop() const OVERRIDE; 44 virtual MessageLoop* OverrideCompositorMessageLoop() const OVERRIDE;
44 virtual bool ShouldCreateCompositorInputHandler() const OVERRIDE; 45 virtual bool ShouldCreateCompositorInputHandler() const OVERRIDE;
46 virtual gfx::PixelBuffer::Create GetPixelBufferFactory() const;
45 47
46 private: 48 private:
47 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_; 49 scoped_ptr<AwRenderProcessObserver> aw_render_process_observer_;
48 scoped_ptr<components::VisitedLinkSlave> visited_link_slave_; 50 scoped_ptr<components::VisitedLinkSlave> visited_link_slave_;
49 CompositorMessageLoopGetter* compositor_message_loop_getter_; 51 CompositorMessageLoopGetter* compositor_message_loop_getter_;
50 bool should_create_compositor_input_handler_; 52 bool should_create_compositor_input_handler_;
51 }; 53 };
52 54
53 } // namespace android_webview 55 } // namespace android_webview
54 56
55 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_ 57 #endif // ANDROID_WEBVIEW_RENDERER_AW_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698