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

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

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros 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/plugin_channel_host.cc ('k') | content/renderer/render_process_impl.h » ('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_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
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_
OLDNEW
« no previous file with comments | « content/renderer/plugin_channel_host.cc ('k') | content/renderer/render_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698