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

Unified Diff: chrome/browser/content_settings/permission_context.h

Issue 990303002: Implement PermissionService::GetNextPermissionChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission_impl
Patch Set: review comments Created 5 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/content_settings/permission_context.h
diff --git a/chrome/browser/content_settings/permission_context.h b/chrome/browser/content_settings/permission_context.h
new file mode 100644
index 0000000000000000000000000000000000000000..16c4670a6c775cbcf23b626bc8a2f0430a6027dd
--- /dev/null
+++ b/chrome/browser/content_settings/permission_context.h
@@ -0,0 +1,30 @@
+// 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_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_
+#define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_
+
+#include <list>
+
+#include "components/content_settings/core/common/content_settings_types.h"
+
+class PermissionContextBase;
+class Profile;
+class KeyedServiceBaseFactory;
+
+class PermissionContext {
+ public:
+ // Helper method returning the PermissionContextBase object associated with
+ // the given ContentSettingsType.
+ static PermissionContextBase* Get(Profile* profile,
+ ContentSettingsType content_settings_type);
+
+ // Return all the factories related to PermissionContext. These are the
+ // factories used by ::Get() to create a PermissionContextBase.
+ // This is meant to be used by callers of ::Get() that need to depend on these
+ // factories.
+ static std::list<KeyedServiceBaseFactory*> GetFactories();
+};
Bernhard Bauer 2015/03/23 10:20:43 Add DISALLOW_IMPLICIT_CONSTRUCTORS to prevent this
+
+#endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698