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_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/timer.h" | |
9 #include "content/renderer/render_process.h" | 8 #include "content/renderer/render_process.h" |
10 | 9 |
11 class SkCanvas; | |
12 | |
13 namespace content { | 10 namespace content { |
14 | 11 |
15 // Implementation of the RenderProcess interface for the regular browser. | 12 // Implementation of the RenderProcess interface for the regular browser. |
16 // See also MockRenderProcess which implements the active "RenderProcess" when | 13 // See also MockRenderProcess which implements the active "RenderProcess" when |
17 // running under certain unit tests. | 14 // running under certain unit tests. |
18 class RenderProcessImpl : public RenderProcess { | 15 class RenderProcessImpl : public RenderProcess { |
19 public: | 16 public: |
20 RenderProcessImpl(); | 17 RenderProcessImpl(); |
21 virtual ~RenderProcessImpl(); | 18 virtual ~RenderProcessImpl(); |
22 | 19 |
23 // RenderProcess implementation. | 20 // RenderProcess implementation. |
24 virtual void AddBindings(int bindings) OVERRIDE; | 21 virtual void AddBindings(int bindings) OVERRIDE; |
25 virtual int GetEnabledBindings() const OVERRIDE; | 22 virtual int GetEnabledBindings() const OVERRIDE; |
26 | 23 |
27 private: | 24 private: |
28 // Bitwise-ORed set of extra bindings that have been enabled anywhere in this | 25 // Bitwise-ORed set of extra bindings that have been enabled anywhere in this |
29 // process. See BindingsPolicy for details. | 26 // process. See BindingsPolicy for details. |
30 int enabled_bindings_; | 27 int enabled_bindings_; |
31 | 28 |
32 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl); | 29 DISALLOW_COPY_AND_ASSIGN(RenderProcessImpl); |
33 }; | 30 }; |
34 | 31 |
35 } // namespace content | 32 } // namespace content |
36 | 33 |
37 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ | 34 #endif // CONTENT_RENDERER_RENDER_PROCESS_IMPL_H_ |
OLD | NEW |