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

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

Issue 2922933002: Remove |accept_states_| from PermissionRequestManager (Closed)
Patch Set: Remove |accept_states_| from PermissionRequestManager Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_request_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_request_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698