| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_RENDERER_RENDER_PROCESS_H__ | 5 #ifndef CHROME_RENDERER_RENDER_PROCESS_H__ |
| 6 #define CHROME_RENDERER_RENDER_PROCESS_H__ | 6 #define CHROME_RENDERER_RENDER_PROCESS_H__ |
| 7 | 7 |
| 8 #include "base/shared_memory.h" | |
| 9 #include "chrome/common/child_process.h" | 8 #include "chrome/common/child_process.h" |
| 10 #include "chrome/renderer/render_thread.h" | 9 #include "chrome/renderer/render_thread.h" |
| 11 | 10 |
| 11 namespace base { |
| 12 class SharedMemory; |
| 13 } |
| 14 |
| 12 // Represents the renderer end of the browser<->renderer connection. The | 15 // Represents the renderer end of the browser<->renderer connection. The |
| 13 // opposite end is the RenderProcessHost. This is a singleton object for | 16 // opposite end is the RenderProcessHost. This is a singleton object for |
| 14 // each renderer. | 17 // each renderer. |
| 15 class RenderProcess : public ChildProcess { | 18 class RenderProcess : public ChildProcess { |
| 16 public: | 19 public: |
| 17 static bool GlobalInit(const std::wstring& channel_name); | 20 static bool GlobalInit(const std::wstring& channel_name); |
| 18 static void GlobalCleanup(); | 21 static void GlobalCleanup(); |
| 19 | 22 |
| 20 // Returns true if plugins should be loaded in-process. | 23 // Returns true if plugins should be loaded in-process. |
| 21 static bool ShouldLoadPluginsInProcess(); | 24 static bool ShouldLoadPluginsInProcess(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 78 |
| 76 // This factory is used to lazily invoke ClearSharedMemCache. | 79 // This factory is used to lazily invoke ClearSharedMemCache. |
| 77 ScopedRunnableMethodFactory<RenderProcess> clearer_factory_; | 80 ScopedRunnableMethodFactory<RenderProcess> clearer_factory_; |
| 78 | 81 |
| 79 static bool load_plugins_in_process_; | 82 static bool load_plugins_in_process_; |
| 80 | 83 |
| 81 DISALLOW_COPY_AND_ASSIGN(RenderProcess); | 84 DISALLOW_COPY_AND_ASSIGN(RenderProcess); |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 #endif // CHROME_RENDERER_RENDER_PROCESS_H__ | 87 #endif // CHROME_RENDERER_RENDER_PROCESS_H__ |
| OLD | NEW |