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

Side by Side Diff: chrome/utility/shell_handler_win.h

Issue 2079233004: Add the Windows.IsPinnedToTaskbar metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Constexpr TimeDelta Created 4 years, 5 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
« no previous file with comments | « chrome/utility/shell_handler_impl_win.cc ('k') | chrome/utility/shell_handler_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 #ifndef CHROME_UTILITY_SHELL_HANDLER_WIN_H_
6 #define CHROME_UTILITY_SHELL_HANDLER_WIN_H_
7
8 #include <Windows.h>
9
10 #include <tuple>
11 #include <vector>
12
13 #include "base/compiler_specific.h"
14 #include "base/macros.h"
15 #include "base/strings/string16.h"
16 #include "chrome/utility/utility_message_handler.h"
17
18 namespace base {
19 class FilePath;
20 } // namespace base
21
22 using GetOpenFileNameFilter =
23 std::vector<std::tuple<base::string16, base::string16>>;
24
25 struct ChromeUtilityMsg_GetSaveFileName_Params;
26
27 // Handles requests to execute shell operations. Used to protect the browser
28 // process from instability due to 3rd-party shell extensions. Must be invoked
29 // in a non-sandboxed utility process.
30 class ShellHandler : public UtilityMessageHandler {
31 public:
32 ShellHandler();
33 ~ShellHandler() override;
34
35 // IPC::Listener implementation
36 bool OnMessageReceived(const IPC::Message& message) override;
37
38 private:
39 void OnGetOpenFileName(
40 HWND owner,
41 DWORD flags,
42 const GetOpenFileNameFilter& filter,
43 const base::FilePath& initial_directory,
44 const base::FilePath& filename);
45
46 void OnGetSaveFileName(const ChromeUtilityMsg_GetSaveFileName_Params& params);
47
48 DISALLOW_COPY_AND_ASSIGN(ShellHandler);
49 };
50
51 #endif // CHROME_UTILITY_SHELL_HANDLER_WIN_H_
OLDNEW
« no previous file with comments | « chrome/utility/shell_handler_impl_win.cc ('k') | chrome/utility/shell_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698