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

Side by Side Diff: chrome/browser/cross_site_request_manager.cc

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698