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

Unified 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: A few small tweaks 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 side-by-side diff with in-line comments
Download patch
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..a6b1394a58af8cf8b6755871ac690643c84f9864
--- /dev/null
+++ b/chrome/browser/chromeos/display/quirks_manager_delegate_impl.h
@@ -0,0 +1,34 @@
+// 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() = default;
+
+ // QuirksManager::Delegate implementation.
+ std::string GetApiKey() const override;
+ base::FilePath GetBuiltInDisplayProfileDirectory() const override;
+ base::FilePath GetDownloadDisplayProfileDirectory() const override;
+ void GetDaysSinceOobe(
+ QuirksManager::DaysSinceOobeCallback callback) const override;
+
+ private:
+ ~QuirksManagerDelegateImpl() override = default;
+
+ DISALLOW_COPY_AND_ASSIGN(QuirksManagerDelegateImpl);
+};
+
+} // namespace quirks
+
+#endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_MANAGER_DELEGATE_IMPL_H_
« no previous file with comments | « chrome/browser/chromeos/display/quirks_browsertest.cc ('k') | chrome/browser/chromeos/display/quirks_manager_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698