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

Side by Side Diff: content/browser/keyboard_lock/keyboard_lock_service_impl.cc

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "content/browser/keyboard_lock/keyboard_lock_service_impl.h" 5 #include "content/browser/keyboard_lock/keyboard_lock_service_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "content/public/browser/render_frame_host.h" 11 #include "content/public/browser/render_frame_host.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 KeyboardLockServiceImpl::KeyboardLockServiceImpl() = default; 15 KeyboardLockServiceImpl::KeyboardLockServiceImpl() = default;
16 16
17 KeyboardLockServiceImpl::~KeyboardLockServiceImpl() = default; 17 KeyboardLockServiceImpl::~KeyboardLockServiceImpl() = default;
18 18
19 // static 19 // static
20 void KeyboardLockServiceImpl::CreateMojoService( 20 void KeyboardLockServiceImpl::CreateMojoService(
21 const service_manager::BindSourceInfo& source_info,
21 blink::mojom::KeyboardLockServiceRequest request) { 22 blink::mojom::KeyboardLockServiceRequest request) {
22 mojo::MakeStrongBinding( 23 mojo::MakeStrongBinding(
23 base::MakeUnique<KeyboardLockServiceImpl>(), 24 base::MakeUnique<KeyboardLockServiceImpl>(),
24 std::move(request)); 25 std::move(request));
25 } 26 }
26 27
27 void KeyboardLockServiceImpl::RequestKeyboardLock( 28 void KeyboardLockServiceImpl::RequestKeyboardLock(
28 const std::vector<std::string>& key_codes, 29 const std::vector<std::string>& key_codes,
29 const RequestKeyboardLockCallback& callback) { 30 const RequestKeyboardLockCallback& callback) {
30 // TODO(zijiehe): Implementation required. 31 // TODO(zijiehe): Implementation required.
31 callback.Run(blink::mojom::KeyboardLockRequestResult::SUCCESS); 32 callback.Run(blink::mojom::KeyboardLockRequestResult::SUCCESS);
32 } 33 }
33 34
34 void KeyboardLockServiceImpl::CancelKeyboardLock() { 35 void KeyboardLockServiceImpl::CancelKeyboardLock() {
35 // TODO(zijiehe): Implementation required. 36 // TODO(zijiehe): Implementation required.
36 } 37 }
37 38
38 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/keyboard_lock/keyboard_lock_service_impl.h ('k') | content/browser/media/session/media_session_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698