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

Side by Side Diff: components/quirks/quirks_manager.h

Issue 2431853002: Remove built-in path check from Quirks (Closed)
Patch Set: Created 4 years, 2 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_QUIRKS_QUIRKS_MANAGER_H_ 5 #ifndef COMPONENTS_QUIRKS_QUIRKS_MANAGER_H_
6 #define COMPONENTS_QUIRKS_QUIRKS_MANAGER_H_ 6 #define COMPONENTS_QUIRKS_QUIRKS_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 std::unique_ptr<net::URLFetcher>(const GURL&, net::URLFetcherDelegate*)>; 58 std::unique_ptr<net::URLFetcher>(const GURL&, net::URLFetcherDelegate*)>;
59 59
60 // Delegate class, so implementation can access browser functionality. 60 // Delegate class, so implementation can access browser functionality.
61 class Delegate { 61 class Delegate {
62 public: 62 public:
63 virtual ~Delegate() = default; 63 virtual ~Delegate() = default;
64 64
65 // Provides Chrome API key for quirks server. 65 // Provides Chrome API key for quirks server.
66 virtual std::string GetApiKey() const = 0; 66 virtual std::string GetApiKey() const = 0;
67 67
68 // Returns the read-only directory where icc files were added before the
69 // Quirks Client provided them.
70 virtual base::FilePath GetBuiltInDisplayProfileDirectory() const = 0;
71
72 // Returns the path to the writable display profile directory. 68 // Returns the path to the writable display profile directory.
73 // This directory must already exist. 69 // This directory must already exist.
74 virtual base::FilePath GetDownloadDisplayProfileDirectory() const = 0; 70 virtual base::FilePath GetDisplayProfileDirectory() const = 0;
75 71
76 // Whether downloads are allowed by enterprise device policy. 72 // Whether downloads are allowed by enterprise device policy.
77 virtual bool DevicePolicyEnabled() const = 0; 73 virtual bool DevicePolicyEnabled() const = 0;
78 74
79 private: 75 private:
80 DISALLOW_ASSIGN(Delegate); 76 DISALLOW_ASSIGN(Delegate);
81 }; 77 };
82 78
83 static void Initialize( 79 static void Initialize(
84 std::unique_ptr<Delegate> delegate, 80 std::unique_ptr<Delegate> delegate,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 153
158 // Factory for callbacks. 154 // Factory for callbacks.
159 base::WeakPtrFactory<QuirksManager> weak_ptr_factory_; 155 base::WeakPtrFactory<QuirksManager> weak_ptr_factory_;
160 156
161 DISALLOW_COPY_AND_ASSIGN(QuirksManager); 157 DISALLOW_COPY_AND_ASSIGN(QuirksManager);
162 }; 158 };
163 159
164 } // namespace quirks 160 } // namespace quirks
165 161
166 #endif // COMPONENTS_QUIRKS_QUIRKS_MANAGER_H_ 162 #endif // COMPONENTS_QUIRKS_QUIRKS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698