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

Unified Diff: chrome/browser/permissions/chooser_context.h

Issue 1560263002: Store Bluetooth permissions in website settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added code to check session->chooser_permission_manager 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/permissions/chooser_context.h
diff --git a/chrome/browser/permissions/permission_context.h b/chrome/browser/permissions/chooser_context.h
similarity index 55%
copy from chrome/browser/permissions/permission_context.h
copy to chrome/browser/permissions/chooser_context.h
index 7dfd84edbac55f7bc66889b4c728e3cccbae7097..b885609031db61646bb80b1296917a365a4eb7bd 100644
--- a/chrome/browser/permissions/permission_context.h
+++ b/chrome/browser/permissions/chooser_context.h
@@ -1,16 +1,16 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
+// 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_PERMISSIONS_PERMISSION_CONTEXT_H_
-#define CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_H_
+#ifndef CHROME_BROWSER_PERMISSIONS_CHOOSER_CONTEXT_H_
+#define CHROME_BROWSER_PERMISSIONS_CHOOSER_CONTEXT_H_
#include <list>
#include "base/macros.h"
#include "components/content_settings/core/common/content_settings_types.h"
-class PermissionContextBase;
+class ChooserContextBase;
class Profile;
class KeyedServiceBaseFactory;
@@ -18,24 +18,23 @@ namespace content {
enum class PermissionType;
}; // namespace content
-class PermissionContext {
+class ChooserContext {
public:
// Helper method returning the PermissionContextBase object associated with
// the given ContentSettingsType.
// This can return nullptr if the the permission type has no associated
// context.
- static PermissionContextBase* Get(
- Profile* profile,
- content::PermissionType content_settings_type);
+ static ChooserContextBase* Get(Profile* profile,
+ content::PermissionType content_settings_type);
- // Return all the factories related to PermissionContext. These are the
- // factories used by ::Get() to create a PermissionContextBase.
+ // Return all the factories related to ChooserContext. These are the
+ // factories used by ::Get() to create a ChooserContextBase.
// This is meant to be used by callers of ::Get() that need to depend on these
// factories.
static const std::list<KeyedServiceBaseFactory*>& GetFactories();
private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContext);
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ChooserContext);
};
-#endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_H_
+#endif // CHROME_BROWSER_PERMISSIONS_CHOOSER_CONTEXT_H_
« no previous file with comments | « chrome/browser/bluetooth/bluetooth_permission_context_factory.cc ('k') | chrome/browser/permissions/chooser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698