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

Unified Diff: chrome/browser/subresource_filter/subresource_filter_profile_context.h

Issue 2829313002: Add SubresourceFilterProfileContext for all profile scoped context (Closed)
Patch Set: engedy review Created 3 years, 8 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/subresource_filter/subresource_filter_profile_context.h
diff --git a/chrome/browser/subresource_filter/subresource_filter_profile_context.h b/chrome/browser/subresource_filter/subresource_filter_profile_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..582e041d7a13cf72d5fddf398a15577b81a60027
--- /dev/null
+++ b/chrome/browser/subresource_filter/subresource_filter_profile_context.h
@@ -0,0 +1,32 @@
+// Copyright 2017 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_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_PROFILE_CONTEXT_H_
+#define CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_PROFILE_CONTEXT_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "components/keyed_service/core/keyed_service.h"
+
+class Profile;
+class SubresourceFilterContentSettingsManager;
+
+// This class holds profile scoped context for subresource filtering.
+class SubresourceFilterProfileContext : public KeyedService {
+ public:
+ explicit SubresourceFilterProfileContext(Profile* profile);
+ ~SubresourceFilterProfileContext() override;
+
+ private:
+ // KeyedService:
+ void Shutdown() override;
+
+ std::unique_ptr<SubresourceFilterContentSettingsManager>
+ content_settings_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(SubresourceFilterProfileContext);
+};
+
+#endif // CHROME_BROWSER_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_PROFILE_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698