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

Side by Side Diff: chrome/browser/chromeos/display/quirks_manager_delegate_impl.h

Issue 1528963002: Quirks Client for downloading and providing display profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ash_unittests Created 4 years, 9 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
OLDNEW
(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_MANAGER_DELEGATE_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_
7
8 #include "base/macros.h"
9 #include "components/quirks/quirks_manager.h"
10
11 namespace quirks {
12
13 // Working implementation of QuirksManager::Delegate for access to chrome-
14 // restricted parts.
15 class QuirksManagerDelegateImpl : public QuirksManager::Delegate {
16 public:
17 QuirksManagerDelegateImpl();
18
19 // QuirksManager::Delegate implementation.
20 std::string GetApiKey() const override;
21
22 // Returns the read-only directory where icc files were added before the
23 // 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.
24 base::FilePath GetBuiltInDisplayProfileDirectory() const override;
25
26 // Returns the path to the writable display profile directory.
27 // On chrome device, returns /var/cache/display_profiles.
28 // On Linux desktop, returns {DIR_USER_DATA}/display_profiles.
29 // Either directory must already exist.
30 base::FilePath GetDownloadDisplayProfileDirectory() const override;
31
32 // Checks OOBE flag file time stamp from blocking pool and stores result.
33 void CheckDaysSinceOobe() override;
34
35 int GetDaysSinceOobe() const override;
36
37 private:
38 ~QuirksManagerDelegateImpl() override = default;
39
40 int days_since_oobe_;
41
42 DISALLOW_COPY_AND_ASSIGN(QuirksManagerDelegateImpl);
43 };
44
45 } // namespace quirks
46
47 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698