| OLD | NEW |
| 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_PROCESS_H_ |
| 6 #define CONTENT_RENDERER_RENDER_PROCESS_H_ | 6 #define CONTENT_RENDERER_RENDER_PROCESS_H_ |
| 7 | 7 |
| 8 #include "content/common/child_process.h" | 8 #include "content/common/child_process.h" |
| 9 #include "skia/ext/platform_canvas.h" | 9 #include "skia/ext/platform_canvas.h" |
| 10 | 10 |
| 11 class TransportDIB; | 11 class TransportDIB; |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 class Rect; | 14 class Rect; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace skia { | 17 namespace skia { |
| 18 class PlatformCanvas; | 18 class PlatformCanvas; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace content { |
| 22 |
| 21 // A abstract interface representing the renderer end of the browser<->renderer | 23 // A abstract interface representing the renderer end of the browser<->renderer |
| 22 // connection. The opposite end is the RenderProcessHost. This is a singleton | 24 // connection. The opposite end is the RenderProcessHost. This is a singleton |
| 23 // object for each renderer. | 25 // object for each renderer. |
| 24 // | 26 // |
| 25 // RenderProcessImpl implements this interface for the regular browser. | 27 // RenderProcessImpl implements this interface for the regular browser. |
| 26 // MockRenderProcess implements this interface for certain tests, especially | 28 // MockRenderProcess implements this interface for certain tests, especially |
| 27 // ones derived from RenderViewTest. | 29 // ones derived from RenderViewTest. |
| 28 class RenderProcess : public ChildProcess { | 30 class RenderProcess : public ChildProcess { |
| 29 public: | 31 public: |
| 30 RenderProcess() {} | 32 RenderProcess() {} |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // we're actually a renderer or a renderer test, this static cast will | 65 // we're actually a renderer or a renderer test, this static cast will |
| 64 // be correct. | 66 // be correct. |
| 65 static RenderProcess* current() { | 67 static RenderProcess* current() { |
| 66 return static_cast<RenderProcess*>(ChildProcess::current()); | 68 return static_cast<RenderProcess*>(ChildProcess::current()); |
| 67 } | 69 } |
| 68 | 70 |
| 69 private: | 71 private: |
| 70 DISALLOW_COPY_AND_ASSIGN(RenderProcess); | 72 DISALLOW_COPY_AND_ASSIGN(RenderProcess); |
| 71 }; | 73 }; |
| 72 | 74 |
| 75 } // namespace content |
| 76 |
| 73 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_ | 77 #endif // CONTENT_RENDERER_RENDER_PROCESS_H_ |
| OLD | NEW |