| 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_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ |
| 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ | 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 | 10 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // Maps from the first request of a kind to subsequent requests that were | 192 // Maps from the first request of a kind to subsequent requests that were |
| 193 // duped against it. | 193 // duped against it. |
| 194 std::unordered_multimap<PermissionRequest*, PermissionRequest*> | 194 std::unordered_multimap<PermissionRequest*, PermissionRequest*> |
| 195 duplicate_requests_; | 195 duplicate_requests_; |
| 196 | 196 |
| 197 bool main_frame_has_fully_loaded_; | 197 bool main_frame_has_fully_loaded_; |
| 198 | 198 |
| 199 // Whether the response to each request should be persisted. | 199 // Whether the response to each request should be persisted. |
| 200 bool persist_; | 200 bool persist_; |
| 201 | 201 |
| 202 // Whether each of the requests in |requests_| is accepted by the user. | |
| 203 std::vector<bool> accept_states_; | |
| 204 | |
| 205 base::ObserverList<Observer> observer_list_; | 202 base::ObserverList<Observer> observer_list_; |
| 206 AutoResponseType auto_response_for_test_; | 203 AutoResponseType auto_response_for_test_; |
| 207 | 204 |
| 208 base::WeakPtrFactory<PermissionRequestManager> weak_factory_; | 205 base::WeakPtrFactory<PermissionRequestManager> weak_factory_; |
| 209 }; | 206 }; |
| 210 | 207 |
| 211 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ | 208 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_REQUEST_MANAGER_H_ |
| OLD | NEW |