Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / sandbox / win / src / process_mitigations_win32k_dispatcher.h
blob2e1e1a802f5a0cf85c8daa46c8da84aa20af25f0
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.
5 #ifndef SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_DISPATCHER_H_
6 #define SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_DISPATCHER_H_
8 #include "base/basictypes.h"
9 #include "sandbox/win/src/sandbox_policy_base.h"
11 namespace sandbox {
13 // This class sets up intercepts for the Win32K lockdown policy which is set
14 // on Windows 8 and beyond.
15 class ProcessMitigationsWin32KDispatcher : public Dispatcher {
16 public:
17 explicit ProcessMitigationsWin32KDispatcher(PolicyBase* policy_base);
18 ~ProcessMitigationsWin32KDispatcher() override {}
20 // Dispatcher interface.
21 bool SetupService(InterceptionManager* manager, int service) override;
23 private:
24 PolicyBase* policy_base_;
26 DISALLOW_COPY_AND_ASSIGN(ProcessMitigationsWin32KDispatcher);
29 } // namespace sandbox
31 #endif // SANDBOX_SRC_PROCESS_MITIGATIONS_WIN32K_DISPATCHER_H_