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

Unified Diff: chrome/utility/shell_handler_impl_win.h

Issue 2079233004: Add the Windows.IsPinnedToTaskbar metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Grt's comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/shell_handler_impl_win.h
diff --git a/chrome/utility/shell_handler_impl_win.h b/chrome/utility/shell_handler_impl_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..224812e5dbddeaecf7cb32c8d021797761313477
--- /dev/null
+++ b/chrome/utility/shell_handler_impl_win.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_
+#define CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_
+
+#include "base/macros.h"
+#include "chrome/common/shell_handler_win.mojom.h"
+#include "mojo/public/cpp/bindings/strong_binding.h"
+
+// Implements the ShellHandler mojo interface.
+class ShellHandlerImpl : public mojom::ShellHandler {
gab 2016/06/28 20:59:18 How is this related to "class ShellHandler"? I'm n
Patrick Monette 2016/06/28 23:22:25 ShellHandler is the deprecated IPC version that ne
gab 2016/06/30 15:28:11 Got it, can you rename the old one then? IPCShellH
+ public:
+ static void Create(mojom::ShellHandlerRequest request);
+
+ private:
+ explicit ShellHandlerImpl(mojom::ShellHandlerRequest request);
+ ~ShellHandlerImpl() override;
+
+ // mojom::ShellHandler:
+ void IsPinnedToTaskbar(const IsPinnedToTaskbarCallback& callback) override;
+
+ mojo::StrongBinding<ShellHandler> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellHandlerImpl);
+};
+
+#endif // CHROME_UTILITY_SHELL_HANDLER_IMPL_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698