| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONTENT_SETTINGS_PERMISSION_CONTEXT_BASE_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_BASE_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_BASE_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_BASE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/containers/scoped_ptr_hash_map.h" | 9 #include "base/containers/scoped_ptr_hash_map.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void UpdateContentSetting( | 102 void UpdateContentSetting( |
| 103 const GURL& requesting_origin, | 103 const GURL& requesting_origin, |
| 104 const GURL& embedder_origin, | 104 const GURL& embedder_origin, |
| 105 bool allowed); | 105 bool allowed); |
| 106 | 106 |
| 107 // Called when a bubble is no longer used so it can be cleaned up. | 107 // Called when a bubble is no longer used so it can be cleaned up. |
| 108 void CleanUpBubble(const PermissionRequestID& id); | 108 void CleanUpBubble(const PermissionRequestID& id); |
| 109 | 109 |
| 110 Profile* profile_; | 110 Profile* profile_; |
| 111 const ContentSettingsType permission_type_; | 111 const ContentSettingsType permission_type_; |
| 112 base::WeakPtrFactory<PermissionContextBase> weak_factory_; | |
| 113 scoped_ptr<PermissionQueueController> permission_queue_controller_; | 112 scoped_ptr<PermissionQueueController> permission_queue_controller_; |
| 114 base::ScopedPtrHashMap<std::string, PermissionBubbleRequest> | 113 base::ScopedPtrHashMap<std::string, PermissionBubbleRequest> |
| 115 pending_bubbles_; | 114 pending_bubbles_; |
| 115 |
| 116 base::WeakPtrFactory<PermissionContextBase> weak_factory_; |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_BASE_H_ | 119 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_BASE_H_ |
| OLD | NEW |