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

Side by Side Diff: chrome/browser/permissions/permission_manager.h

Issue 1337903002: permissions: remove PermissionQueueController and introduce PermissionInfoBarManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@callbacks-delegates
Patch Set: Attempt to fix test Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 content::PermissionType permission, 53 content::PermissionType permission,
54 const GURL& requesting_origin, 54 const GURL& requesting_origin,
55 const GURL& embedding_origin, 55 const GURL& embedding_origin,
56 const base::Callback<void(content::PermissionStatus)>& callback) override; 56 const base::Callback<void(content::PermissionStatus)>& callback) override;
57 void UnsubscribePermissionStatusChange(int subscription_id) override; 57 void UnsubscribePermissionStatusChange(int subscription_id) override;
58 58
59 private: 59 private:
60 struct Subscription; 60 struct Subscription;
61 using SubscriptionsMap = IDMap<Subscription, IDMapOwnPointer>; 61 using SubscriptionsMap = IDMap<Subscription, IDMapOwnPointer>;
62 62
63 // Not all WebContents are able to display permission requests. If the PBM 63 // Not all WebContents are able to display permission requests. If the UI
64 // is required but missing for |web_contents|, don't pass along the request. 64 // manager is required but missing for |web_contents|, don't pass along the
65 bool IsPermissionBubbleManagerMissing(content::WebContents* web_contents); 65 // request.
66 bool IsPermissionUIManagerMissing(content::WebContents* web_contents);
66 67
67 // content_settings::Observer implementation. 68 // content_settings::Observer implementation.
68 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, 69 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern,
69 const ContentSettingsPattern& secondary_pattern, 70 const ContentSettingsPattern& secondary_pattern,
70 ContentSettingsType content_type, 71 ContentSettingsType content_type,
71 std::string resource_identifier) override; 72 std::string resource_identifier) override;
72 73
73 Profile* profile_; 74 Profile* profile_;
74 SubscriptionsMap subscriptions_; 75 SubscriptionsMap subscriptions_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(PermissionManager); 77 DISALLOW_COPY_AND_ASSIGN(PermissionManager);
77 }; 78 };
78 79
79 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_ 80 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698