Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: content/browser/renderer_host/render_view_host_notification_task.h

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_
11 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_ 11 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_
12 #pragma once 12 #pragma once
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/task.h" 15 #include "base/task.h"
16 #include "chrome/browser/browser_thread.h" 16 #include "chrome/browser/browser_thread.h"
17 #include "chrome/browser/renderer_host/render_view_host.h" 17 #include "content/browser/renderer_host/render_view_host.h"
18 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 18 #include "content/browser/renderer_host/render_view_host_delegate.h"
19 19
20 // ---------------------------------------------------------------------------- 20 // ----------------------------------------------------------------------------
21 21
22 namespace internal { 22 namespace internal {
23 23
24 // The simplest Mapper, used when proxying calls to a RenderViewHost. 24 // The simplest Mapper, used when proxying calls to a RenderViewHost.
25 class RenderViewHostIdentityMapper { 25 class RenderViewHostIdentityMapper {
26 public: 26 public:
27 typedef RenderViewHost MappedType; 27 typedef RenderViewHost MappedType;
28 static MappedType* Map(RenderViewHost* rvh) { return rvh; } 28 static MappedType* Map(RenderViewHost* rvh) { return rvh; }
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 const B& b) { 327 const B& b) {
328 internal::CallRenderViewHostSSLDelegateHelper( 328 internal::CallRenderViewHostSSLDelegateHelper(
329 render_process_id, 329 render_process_id,
330 render_view_id, 330 render_view_id,
331 method, 331 method,
332 MakeTuple(a, b)); 332 MakeTuple(a, b));
333 } 333 }
334 334
335 // ---------------------------------------------------------------------------- 335 // ----------------------------------------------------------------------------
336 336
337 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_ 337 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_NOTIFICATION_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698