OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 #include "services/reaper/reaper_binding.h" | 5 #include "services/reaper/reaper_binding.h" |
6 | 6 |
7 #include "services/reaper/reaper_impl.h" | 7 #include "services/reaper/reaper_impl.h" |
8 | 8 |
9 namespace reaper { | 9 namespace reaper { |
10 | 10 |
11 ReaperBinding::ReaperBinding(const GURL& caller_url, | 11 ReaperBinding::ReaperBinding(const GURL& caller_url, |
12 ReaperImpl* impl, | 12 ReaperImpl* impl, |
13 mojo::InterfaceRequest<Reaper> request) | 13 mojo::InterfaceRequest<Reaper> request) |
14 : caller_url_(caller_url), impl_(impl), binding_(this, request.Pass()) { | 14 : caller_url_(caller_url), impl_(impl), binding_(this, request.Pass()) { |
15 } | 15 } |
16 | 16 |
17 ReaperBinding::~ReaperBinding() {} | |
jamesr
2015/03/06 22:35:32
i know you had to out-of-line this but why change
DaveMoore
2015/03/10 21:24:00
Done.
| |
18 | |
17 void ReaperBinding::GetApplicationSecret( | 19 void ReaperBinding::GetApplicationSecret( |
18 const mojo::Callback<void(uint64)>& callback) { | 20 const mojo::Callback<void(uint64)>& callback) { |
19 impl_->GetApplicationSecret(caller_url_, callback); | 21 impl_->GetApplicationSecret(caller_url_, callback); |
20 } | 22 } |
21 | 23 |
22 void ReaperBinding::CreateReference(uint32 source_node, uint32 target_node) { | 24 void ReaperBinding::CreateReference(uint32 source_node, uint32 target_node) { |
23 impl_->CreateReference(caller_url_, source_node, target_node); | 25 impl_->CreateReference(caller_url_, source_node, target_node); |
24 } | 26 } |
25 | 27 |
26 void ReaperBinding::DropNode(uint32 node) { | 28 void ReaperBinding::DropNode(uint32 node) { |
27 impl_->DropNode(caller_url_, node); | 29 impl_->DropNode(caller_url_, node); |
28 } | 30 } |
29 | 31 |
30 void ReaperBinding::StartTransfer(uint32 node, | 32 void ReaperBinding::StartTransfer(uint32 node, |
31 mojo::InterfaceRequest<Transfer> request) { | 33 mojo::InterfaceRequest<Transfer> request) { |
32 impl_->StartTransfer(caller_url_, node, request.Pass()); | 34 impl_->StartTransfer(caller_url_, node, request.Pass()); |
33 } | 35 } |
34 | 36 |
35 void ReaperBinding::Ping(const mojo::Closure& closure) { | 37 void ReaperBinding::Ping(const mojo::Closure& closure) { |
36 closure.Run(); | 38 closure.Run(); |
37 } | 39 } |
38 | 40 |
39 } // namespace reaper | 41 } // namespace reaper |
OLD | NEW |