| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file defines utility functions for sending notifications (calling | 5 // This file defines utility functions for sending notifications (calling |
| 6 // methods that return void and do not have out params) to the RenderViewHost | 6 // methods that return void and do not have out params) to the RenderViewHost |
| 7 // or one of its delegate interfaces. The notifications are dispatched | 7 // or one of its delegate interfaces. The notifications are dispatched |
| 8 // asynchronously, and only if the specified RenderViewHost still exists. | 8 // asynchronously, and only if the specified RenderViewHost still exists. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_ | 10 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_ |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 int render_view_id, | 250 int render_view_id, |
| 251 Method method, | 251 Method method, |
| 252 const A& a, | 252 const A& a, |
| 253 const B& b) { | 253 const B& b) { |
| 254 internal::CallRenderViewHostContentSettingsDelegateHelper(render_process_id, | 254 internal::CallRenderViewHostContentSettingsDelegateHelper(render_process_id, |
| 255 render_view_id, | 255 render_view_id, |
| 256 method, | 256 method, |
| 257 MakeTuple(a, b)); | 257 MakeTuple(a, b)); |
| 258 } | 258 } |
| 259 | 259 |
| 260 template <typename Method, typename A, typename B, typename C> |
| 261 inline void CallRenderViewHostContentSettingsDelegate(int render_process_id, |
| 262 int render_view_id, |
| 263 Method method, |
| 264 const A& a, |
| 265 const B& b, |
| 266 const C& c) { |
| 267 internal::CallRenderViewHostContentSettingsDelegateHelper(render_process_id, |
| 268 render_view_id, |
| 269 method, |
| 270 MakeTuple(a, b, c)); |
| 271 } |
| 272 |
| 260 // ---------------------------------------------------------------------------- | 273 // ---------------------------------------------------------------------------- |
| 261 // Proxy calls to the specified RenderViewHost's RendererManagement delegate. | 274 // Proxy calls to the specified RenderViewHost's RendererManagement delegate. |
| 262 | 275 |
| 263 template <typename Method> | 276 template <typename Method> |
| 264 inline void CallRenderViewHostRendererManagementDelegate(int render_process_id, | 277 inline void CallRenderViewHostRendererManagementDelegate(int render_process_id, |
| 265 int render_view_id, | 278 int render_view_id, |
| 266 Method method) { | 279 Method method) { |
| 267 internal::CallRenderViewHostRendererManagementDelegateHelper( | 280 internal::CallRenderViewHostRendererManagementDelegateHelper( |
| 268 render_process_id, | 281 render_process_id, |
| 269 render_view_id, | 282 render_view_id, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 292 internal::CallRenderViewHostRendererManagementDelegateHelper( | 305 internal::CallRenderViewHostRendererManagementDelegateHelper( |
| 293 render_process_id, | 306 render_process_id, |
| 294 render_view_id, | 307 render_view_id, |
| 295 method, | 308 method, |
| 296 MakeTuple(a, b)); | 309 MakeTuple(a, b)); |
| 297 } | 310 } |
| 298 | 311 |
| 299 // ---------------------------------------------------------------------------- | 312 // ---------------------------------------------------------------------------- |
| 300 | 313 |
| 301 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_ | 314 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_ |
| OLD | NEW |