OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_ | 5 #ifndef CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_ |
6 #define CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_ | 6 #define CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/common/shell_handler_win.mojom.h" | 9 #include "chrome/common/shell_handler_win.mojom.h" |
10 #include "mojo/public/cpp/bindings/strong_binding.h" | |
11 | 10 |
12 // Implements the ShellHandler mojo interface. | 11 // Implements the ShellHandler mojo interface. |
13 class ShellHandlerImpl : public mojom::ShellHandler { | 12 class ShellHandlerImpl : public mojom::ShellHandler { |
14 public: | 13 public: |
| 14 ShellHandlerImpl(); |
| 15 ~ShellHandlerImpl() override; |
| 16 |
15 static void Create(mojom::ShellHandlerRequest request); | 17 static void Create(mojom::ShellHandlerRequest request); |
16 | 18 |
17 private: | 19 private: |
18 explicit ShellHandlerImpl(mojom::ShellHandlerRequest request); | |
19 ~ShellHandlerImpl() override; | |
20 | |
21 // mojom::ShellHandler: | 20 // mojom::ShellHandler: |
22 void IsPinnedToTaskbar(const IsPinnedToTaskbarCallback& callback) override; | 21 void IsPinnedToTaskbar(const IsPinnedToTaskbarCallback& callback) override; |
23 | 22 |
24 mojo::StrongBinding<ShellHandler> binding_; | |
25 | |
26 DISALLOW_COPY_AND_ASSIGN(ShellHandlerImpl); | 23 DISALLOW_COPY_AND_ASSIGN(ShellHandlerImpl); |
27 }; | 24 }; |
28 | 25 |
29 #endif // CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_ | 26 #endif // CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_ |
OLD | NEW |