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