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_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/quirks/quirks_manager.h" | 9 #include "components/quirks/quirks_manager.h" |
10 | 10 |
11 namespace quirks { | 11 namespace quirks { |
12 | 12 |
13 // Working implementation of QuirksManager::Delegate for access to chrome- | 13 // Working implementation of QuirksManager::Delegate for access to chrome- |
14 // restricted parts. | 14 // restricted parts. |
15 class QuirksManagerDelegateImpl : public QuirksManager::Delegate { | 15 class QuirksManagerDelegateImpl : public QuirksManager::Delegate { |
16 public: | 16 public: |
17 QuirksManagerDelegateImpl() = default; | 17 QuirksManagerDelegateImpl() = default; |
18 | 18 |
19 // QuirksManager::Delegate implementation. | 19 // QuirksManager::Delegate implementation. |
20 std::string GetApiKey() const override; | 20 std::string GetApiKey() const override; |
21 base::FilePath GetBuiltInDisplayProfileDirectory() const override; | 21 base::FilePath GetBuiltInDisplayProfileDirectory() const override; |
22 base::FilePath GetDownloadDisplayProfileDirectory() const override; | 22 base::FilePath GetDownloadDisplayProfileDirectory() const override; |
| 23 bool DevicePolicyEnabled() const override; |
23 void GetDaysSinceOobe( | 24 void GetDaysSinceOobe( |
24 QuirksManager::DaysSinceOobeCallback callback) const override; | 25 QuirksManager::DaysSinceOobeCallback callback) const override; |
25 | 26 |
26 private: | 27 private: |
27 ~QuirksManagerDelegateImpl() override = default; | 28 ~QuirksManagerDelegateImpl() override = default; |
28 | 29 |
29 DISALLOW_COPY_AND_ASSIGN(QuirksManagerDelegateImpl); | 30 DISALLOW_COPY_AND_ASSIGN(QuirksManagerDelegateImpl); |
30 }; | 31 }; |
31 | 32 |
32 } // namespace quirks | 33 } // namespace quirks |
33 | 34 |
34 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ | 35 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ |
OLD | NEW |