1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21

android_webview / renderer / browser_exposed_renderer_interfaces.cc [blame]

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "android_webview/renderer/browser_exposed_renderer_interfaces.h"

#include "android_webview/renderer/aw_content_renderer_client.h"
#include "base/task/single_thread_task_runner.h"
#include "components/visitedlink/renderer/visitedlink_reader.h"
#include "mojo/public/cpp/bindings/binder_map.h"

namespace android_webview {

void ExposeRendererInterfacesToBrowser(AwContentRendererClient* client,
                                       mojo::BinderMap* binders) {
  binders->Add<visitedlink::mojom::VisitedLinkNotificationSink>(
      client->visited_link_reader()->GetBindCallback(),
      base::SingleThreadTaskRunner::GetCurrentDefault());
}

}  // namespace android_webview