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

Side by Side Diff: content/renderer/render_process_impl.h

Issue 11138024: Simplify platform_canvas.h by recognizing that PlatformCanvas does not actually extend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_process.h ('k') | content/renderer/render_process_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_RENDERER_RENDER_PROCESS_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_
7 7
8 #include "base/timer.h" 8 #include "base/timer.h"
9 #include "content/renderer/render_process.h" 9 #include "content/renderer/render_process.h"
10 10
11 namespace skia { 11 class SkCanvas;
12 class PlatformCanvas;
13 }
14 12
15 namespace content { 13 namespace content {
16 14
17 // Implementation of the RenderProcess interface for the regular browser. 15 // Implementation of the RenderProcess interface for the regular browser.
18 // See also MockRenderProcess which implements the active "RenderProcess" when 16 // See also MockRenderProcess which implements the active "RenderProcess" when
19 // running under certain unit tests. 17 // running under certain unit tests.
20 class RenderProcessImpl : public RenderProcess { 18 class RenderProcessImpl : public RenderProcess {
21 public: 19 public:
22 RenderProcessImpl(); 20 RenderProcessImpl();
23 virtual ~RenderProcessImpl(); 21 virtual ~RenderProcessImpl();
24 22
25 // RenderProcess implementation. 23 // RenderProcess implementation.
26 virtual skia::PlatformCanvas* GetDrawingCanvas( 24 virtual SkCanvas* GetDrawingCanvas(
27 TransportDIB** memory, 25 TransportDIB** memory,
28 const gfx::Rect& rect) OVERRIDE; 26 const gfx::Rect& rect) OVERRIDE;
29 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE; 27 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE;
30 virtual bool UseInProcessPlugins() const OVERRIDE; 28 virtual bool UseInProcessPlugins() const OVERRIDE;
31 virtual void AddBindings(int bindings) OVERRIDE; 29 virtual void AddBindings(int bindings) OVERRIDE;
32 virtual int GetEnabledBindings() const OVERRIDE; 30 virtual int GetEnabledBindings() const OVERRIDE;
33 virtual TransportDIB* CreateTransportDIB(size_t size) OVERRIDE; 31 virtual TransportDIB* CreateTransportDIB(size_t size) OVERRIDE;
34 virtual void FreeTransportDIB(TransportDIB*) OVERRIDE; 32 virtual void FreeTransportDIB(TransportDIB*) OVERRIDE;
35 33
36 // Like UseInProcessPlugins(), but called before RenderProcess is created 34 // Like UseInProcessPlugins(), but called before RenderProcess is created
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Bitwise-ORed set of extra bindings that have been enabled anywhere in this 70 // Bitwise-ORed set of extra bindings that have been enabled anywhere in this
73 // process. See BindingsPolicy for details. 71 // process. See BindingsPolicy for details.
74 int enabled_bindings_; 72 int enabled_bindings_;
75 73
76 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl); 74 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl);
77 }; 75 };
78 76
79 } // namespace content 77 } // namespace content
80 78
81 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ 79 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/render_process.h ('k') | content/renderer/render_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698