OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/timer.h" | 9 #include "base/timer.h" |
10 #include "content/renderer/render_process.h" | 10 #include "content/renderer/render_process.h" |
11 #include "native_client/src/shared/imc/nacl_imc.h" | 11 #include "native_client/src/shared/imc/nacl_imc.h" |
12 | 12 |
13 namespace skia { | 13 namespace skia { |
14 class PlatformCanvas; | 14 class PlatformCanvas; |
15 } | 15 } |
16 | 16 |
17 // Implementation of the RenderProcess interface for the regular browser. | 17 // Implementation of the RenderProcess interface for the regular browser. |
18 // See also MockRenderProcess which implements the active "RenderProcess" when | 18 // See also MockRenderProcess which implements the active "RenderProcess" when |
19 // running under certain unit tests. | 19 // running under certain unit tests. |
20 class RenderProcessImpl : public RenderProcess { | 20 class RenderProcessImpl : public RenderProcess { |
21 public: | 21 public: |
22 RenderProcessImpl(); | 22 RenderProcessImpl(); |
23 ~RenderProcessImpl(); | 23 virtual ~RenderProcessImpl(); |
24 | 24 |
25 // RenderProcess implementation. | 25 // RenderProcess implementation. |
26 virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory, | 26 virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory, |
27 const gfx::Rect& rect); | 27 const gfx::Rect& rect); |
28 virtual void ReleaseTransportDIB(TransportDIB* memory); | 28 virtual void ReleaseTransportDIB(TransportDIB* memory); |
29 virtual bool UseInProcessPlugins() const; | 29 virtual bool UseInProcessPlugins() const; |
30 virtual bool HasInitializedMediaLibrary() const; | 30 virtual bool HasInitializedMediaLibrary() const; |
31 | 31 |
32 // Like UseInProcessPlugins(), but called before RenderProcess is created | 32 // Like UseInProcessPlugins(), but called before RenderProcess is created |
33 // and does not allow overriding by tests. This just checks the command line | 33 // and does not allow overriding by tests. This just checks the command line |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 // TransportDIB sequence number | 68 // TransportDIB sequence number |
69 uint32 transport_dib_next_sequence_number_; | 69 uint32 transport_dib_next_sequence_number_; |
70 | 70 |
71 bool in_process_plugins_; | 71 bool in_process_plugins_; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl); | 73 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl); |
74 }; | 74 }; |
75 | 75 |
76 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ | 76 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ |
OLD | NEW |