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

Unified Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_process_host_impl.h
diff --git a/content/browser/renderer_host/render_process_host_impl.h b/content/browser/renderer_host/render_process_host_impl.h
index 5a18d331b35d3e7c473a174fc3d3185d0686fb6a..05c8c7c3498e19d89e73252c60af9cae33d297d1 100644
--- a/content/browser/renderer_host/render_process_host_impl.h
+++ b/content/browser/renderer_host/render_process_host_impl.h
@@ -31,6 +31,7 @@
#include "content/common/content_export.h"
#include "content/common/indexed_db/indexed_db.mojom.h"
#include "content/common/renderer.mojom.h"
+#include "content/common/storage_partition_service.mojom.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/common/service_manager_connection.h"
#include "ipc/ipc_channel_proxy.h"
@@ -78,10 +79,6 @@ class ResourceMessageFilter;
class StoragePartition;
class StoragePartitionImpl;
-namespace mojom {
-class StoragePartitionService;
-} // namespace mojom
-
typedef base::Thread* (*RendererMainThreadFactoryFunction)(
const InProcessChildThreadParams& params);
@@ -347,12 +344,16 @@ class CONTENT_EXPORT RenderProcessHostImpl
void BindRouteProvider(mojom::RouteProviderAssociatedRequest request);
- void CreateMusGpuRequest(ui::mojom::GpuRequest request);
+ void CreateMusGpuRequest(const service_manager::BindSourceInfo& source_info,
+ ui::mojom::GpuRequest request);
void CreateOffscreenCanvasProvider(
+ const service_manager::BindSourceInfo& source_info,
blink::mojom::OffscreenCanvasProviderRequest request);
- void BindFrameSinkProvider(mojom::FrameSinkProviderRequest request);
+ void BindFrameSinkProvider(const service_manager::BindSourceInfo& source_info,
+ mojom::FrameSinkProviderRequest request);
void CreateStoragePartitionService(
- mojo::InterfaceRequest<mojom::StoragePartitionService> request);
+ const service_manager::BindSourceInfo& source_info,
+ mojom::StoragePartitionServiceRequest request);
// Control message handlers.
void OnShutdownRequest();
@@ -405,7 +406,8 @@ class CONTENT_EXPORT RenderProcessHostImpl
template <typename InterfaceType>
using AddInterfaceCallback =
- base::Callback<void(mojo::InterfaceRequest<InterfaceType>)>;
+ base::Callback<void(const service_manager::BindSourceInfo&,
+ mojo::InterfaceRequest<InterfaceType>)>;
template <typename CallbackType>
struct InterfaceGetter;
@@ -415,10 +417,11 @@ class CONTENT_EXPORT RenderProcessHostImpl
static void GetInterfaceOnUIThread(
base::WeakPtr<RenderProcessHostImpl> weak_host,
const AddInterfaceCallback<InterfaceType>& callback,
+ const service_manager::BindSourceInfo& source_info,
mojo::InterfaceRequest<InterfaceType> request) {
if (!weak_host)
return;
- callback.Run(std::move(request));
+ callback.Run(source_info, std::move(request));
}
};
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698