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

Unified Diff: chrome/browser/chromeos/display/quirks_client_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: Remove hacks for clean, but non-working, draft Created 4 years, 11 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_client_delegate_impl.h
diff --git a/chrome/browser/chromeos/display/quirks_client_delegate_impl.h b/chrome/browser/chromeos/display/quirks_client_delegate_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..5b90ec1cc8640e1d1f1a26fcdaac22a9a9eef230
--- /dev/null
+++ b/chrome/browser/chromeos/display/quirks_client_delegate_impl.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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_CLIENT_DELEGATE_IMPL_H_
+#define CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_
+
+#include "base/macros.h"
+#include "components/quirks_client/quirks_client.h"
+
+namespace quirks_client {
+
+// Working implementation of QuirksClientDelegate for access to chrome-
+// restricted parts.
+class QuirksClientDelegateImpl : public QuirksClientDelegate {
+ public:
+ QuirksClientDelegateImpl(base::MessageLoopForUI* message_loop_ui,
+ base::SequencedWorkerPool* blocking_pool,
+ PrefService* local_state,
+ net::URLRequestContextGetter* url_context_getter);
+ ~QuirksClientDelegateImpl() override;
+
+ // QuirksClientBrowserDelegate implementation.
+ std::string api_key_quirks() override;
+ base::FilePath GetDisplayProfileDirectory() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(QuirksClientDelegateImpl);
+};
+
+} // namespace quirks_client
+
+#endif // CHROME_BROWSER_CHROMEOS_DISPLAY_QUIRKS_CLIENT_DELEGATE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698