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