OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/cross_site_request_manager.h" | 5 #include "chrome/browser/cross_site_request_manager.h" |
6 | 6 |
7 bool CrossSiteRequestManager::HasPendingCrossSiteRequest(int renderer_id, | 7 bool CrossSiteRequestManager::HasPendingCrossSiteRequest(int renderer_id, |
8 int render_view_id) { | 8 int render_view_id) { |
9 AutoLock lock(lock_); | 9 AutoLock lock(lock_); |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 if (has_pending) { | 22 if (has_pending) { |
23 pending_cross_site_views_.insert(key); | 23 pending_cross_site_views_.insert(key); |
24 } else { | 24 } else { |
25 pending_cross_site_views_.erase(key); | 25 pending_cross_site_views_.erase(key); |
26 } | 26 } |
27 } | 27 } |
28 | 28 |
29 CrossSiteRequestManager::CrossSiteRequestManager() {} | 29 CrossSiteRequestManager::CrossSiteRequestManager() {} |
30 | 30 |
31 CrossSiteRequestManager::~CrossSiteRequestManager() {} | 31 CrossSiteRequestManager::~CrossSiteRequestManager() {} |
| 32 |
| 33 // static |
| 34 CrossSiteRequestManager* CrossSiteRequestManager::GetInstance() { |
| 35 return Singleton<CrossSiteRequestManager>::get(); |
| 36 } |
OLD | NEW |