OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/quirks_client/quirks_client_manager.h" |
| 10 |
| 11 namespace quirks_client { |
| 12 |
| 13 // Working implementation of QuirksClientManager::Delegate for access to chrome- |
| 14 // restricted parts. |
| 15 class QuirksClientDelegateImpl : public QuirksClientManager::Delegate { |
| 16 public: |
| 17 QuirksClientDelegateImpl() = default; |
| 18 ~QuirksClientDelegateImpl() override = default; |
| 19 |
| 20 // QuirksClientManager::Delegate implementation. |
| 21 std::string GetApiKey() const override; |
| 22 |
| 23 // Returns the path to the writable display profile directory. |
| 24 // On chrome device, returns /var/cache/display_profiles. |
| 25 // On Linux desktop, returns {DIR_USER_DATA}/display_profiles. |
| 26 // Either directory must already exist. |
| 27 base::FilePath GetDisplayProfileDirectory() const override; |
| 28 |
| 29 int GetDaysSinceOobe() const override; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(QuirksClientDelegateImpl); |
| 32 }; |
| 33 |
| 34 } // namespace quirks_client |
| 35 |
| 36 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_ |
OLD | NEW |