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_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/process.h" | 12 #include "base/process.h" |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 16 #include "chrome/browser/renderer_host/audio_renderer_host.h" |
16 #include "chrome/browser/renderer_host/render_process_host.h" | 17 #include "chrome/browser/renderer_host/render_process_host.h" |
17 #include "chrome/common/notification_observer.h" | 18 #include "chrome/common/notification_observer.h" |
18 #include "webkit/glue/cache_manager.h" | 19 #include "webkit/glue/cache_manager.h" |
19 | 20 |
20 class CommandLine; | 21 class CommandLine; |
21 class GURL; | 22 class GURL; |
22 class PrefService; | 23 class PrefService; |
23 class RenderWidgetHelper; | 24 class RenderWidgetHelper; |
24 class WebContents; | 25 class WebContents; |
25 | 26 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // backgrounded. | 130 // backgrounded. |
130 int32 visible_widgets_; | 131 int32 visible_widgets_; |
131 | 132 |
132 // Does this process have backgrounded priority. | 133 // Does this process have backgrounded priority. |
133 bool backgrounded_; | 134 bool backgrounded_; |
134 | 135 |
135 // Used to allow a RenderWidgetHost to intercept various messages on the | 136 // Used to allow a RenderWidgetHost to intercept various messages on the |
136 // IO thread. | 137 // IO thread. |
137 scoped_refptr<RenderWidgetHelper> widget_helper_; | 138 scoped_refptr<RenderWidgetHelper> widget_helper_; |
138 | 139 |
| 140 // The host of audio renderers in the renderer process. |
| 141 scoped_refptr<AudioRendererHost> audio_renderer_host_; |
| 142 |
139 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); | 143 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); |
140 }; | 144 }; |
141 | 145 |
142 // Generates a unique channel name for a child renderer/plugin process. | 146 // Generates a unique channel name for a child renderer/plugin process. |
143 // The "instance" pointer value is baked into the channel id. | 147 // The "instance" pointer value is baked into the channel id. |
144 std::wstring GenerateRandomChannelID(void* instance); | 148 std::wstring GenerateRandomChannelID(void* instance); |
145 | 149 |
146 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ | 150 #endif // CHROME_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ |
OLD | NEW |