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

Unified Diff: chrome/browser/cross_site_request_manager.cc

Issue 6538100: Move core pieces of chrome\browser. I've only gone up to "g", will do the re... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: take out extra stuff from content_browser.gypi Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/cross_site_request_manager.h ('k') | chrome/browser/disposition_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cross_site_request_manager.cc
===================================================================
--- chrome/browser/cross_site_request_manager.cc (revision 75626)
+++ chrome/browser/cross_site_request_manager.cc (working copy)
@@ -1,38 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/cross_site_request_manager.h"
-
-#include "base/singleton.h"
-
-bool CrossSiteRequestManager::HasPendingCrossSiteRequest(int renderer_id,
- int render_view_id) {
- base::AutoLock lock(lock_);
-
- std::pair<int, int> key(renderer_id, render_view_id);
- return pending_cross_site_views_.find(key) !=
- pending_cross_site_views_.end();
-}
-
-void CrossSiteRequestManager::SetHasPendingCrossSiteRequest(int renderer_id,
- int render_view_id,
- bool has_pending) {
- base::AutoLock lock(lock_);
-
- std::pair<int, int> key(renderer_id, render_view_id);
- if (has_pending) {
- pending_cross_site_views_.insert(key);
- } else {
- pending_cross_site_views_.erase(key);
- }
-}
-
-CrossSiteRequestManager::CrossSiteRequestManager() {}
-
-CrossSiteRequestManager::~CrossSiteRequestManager() {}
-
-// static
-CrossSiteRequestManager* CrossSiteRequestManager::GetInstance() {
- return Singleton<CrossSiteRequestManager>::get();
-}
« no previous file with comments | « chrome/browser/cross_site_request_manager.h ('k') | chrome/browser/disposition_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698