Chromium Code Reviews| Index: chrome/browser/chromeos/display/quirks_manager_delegate_impl.h |
| diff --git a/chrome/browser/chromeos/display/quirks_manager_delegate_impl.h b/chrome/browser/chromeos/display/quirks_manager_delegate_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e8d227b83001586c6ee23c99d283cde6604278e8 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/display/quirks_manager_delegate_impl.h |
| @@ -0,0 +1,47 @@ |
| +// 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_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ |
| +#define CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/quirks/quirks_manager.h" |
| + |
| +namespace quirks { |
| + |
| +// Working implementation of QuirksManager::Delegate for access to chrome- |
| +// restricted parts. |
| +class QuirksManagerDelegateImpl : public QuirksManager::Delegate { |
| + public: |
| + QuirksManagerDelegateImpl(); |
| + |
| + // QuirksManager::Delegate implementation. |
| + std::string GetApiKey() const override; |
| + |
| + // Returns the read-only directory where icc files were added before the |
| + // Quirks Client provided them. |
|
stevenjb
2016/02/29 20:22:29
These comments should be in quirks_manager.h in th
Greg Levin
2016/03/02 00:00:26
Done.
|
| + base::FilePath GetBuiltInDisplayProfileDirectory() const override; |
| + |
| + // Returns the path to the writable display profile directory. |
| + // On chrome device, returns /var/cache/display_profiles. |
| + // On Linux desktop, returns {DIR_USER_DATA}/display_profiles. |
| + // Either directory must already exist. |
| + base::FilePath GetDownloadDisplayProfileDirectory() const override; |
| + |
| + // Checks OOBE flag file time stamp from blocking pool and stores result. |
| + void CheckDaysSinceOobe() override; |
| + |
| + int GetDaysSinceOobe() const override; |
| + |
| + private: |
| + ~QuirksManagerDelegateImpl() override = default; |
| + |
| + int days_since_oobe_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(QuirksManagerDelegateImpl); |
| +}; |
| + |
| +} // namespace quirks |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_ |