OLD | NEW |
| (Empty) |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/dom_distiller/content/browser/distiller_javascript_service_
impl.h" | |
6 #include "third_party/mojo/src/mojo/public/cpp/bindings/string.h" | |
7 | |
8 namespace dom_distiller { | |
9 | |
10 DistillerJavaScriptServiceImpl::DistillerJavaScriptServiceImpl( | |
11 mojo::InterfaceRequest<DistillerJavaScriptService> request) | |
12 : binding_(this, request.Pass()) {} | |
13 | |
14 DistillerJavaScriptServiceImpl::~DistillerJavaScriptServiceImpl() {} | |
15 | |
16 void DistillerJavaScriptServiceImpl::HandleDistillerEchoCall( | |
17 const mojo::String& message) {} | |
18 | |
19 void CreateDistillerJavaScriptService( | |
20 mojo::InterfaceRequest<DistillerJavaScriptService> request) { | |
21 // This is strongly bound and owned by the pipe. | |
22 new DistillerJavaScriptServiceImpl(request.Pass()); | |
23 } | |
24 | |
25 } // namespace dom_distiller | |
OLD | NEW |