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

Unified Diff: content/browser/cross_site_request_manager.cc

Issue 464593003: Don't swap out the old RenderFrameHost until the new one commits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase past PlzNavigate CL Created 6 years, 4 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
Index: content/browser/cross_site_request_manager.cc
diff --git a/content/browser/cross_site_request_manager.cc b/content/browser/cross_site_request_manager.cc
deleted file mode 100644
index 5ce71bf8f305343b25d2ec2d5e3e27f4936abc44..0000000000000000000000000000000000000000
--- a/content/browser/cross_site_request_manager.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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 "content/browser/cross_site_request_manager.h"
-
-#include "base/memory/singleton.h"
-
-namespace content {
-
-bool CrossSiteRequestManager::HasPendingCrossSiteRequest(int renderer_id,
- int render_frame_id) {
- base::AutoLock lock(lock_);
-
- std::pair<int, int> key(renderer_id, render_frame_id);
- return pending_cross_site_frames_.find(key) !=
- pending_cross_site_frames_.end();
-}
-
-void CrossSiteRequestManager::SetHasPendingCrossSiteRequest(int renderer_id,
- int render_frame_id,
- bool has_pending) {
- base::AutoLock lock(lock_);
-
- std::pair<int, int> key(renderer_id, render_frame_id);
- if (has_pending) {
- pending_cross_site_frames_.insert(key);
- } else {
- pending_cross_site_frames_.erase(key);
- }
-}
-
-CrossSiteRequestManager::CrossSiteRequestManager() {}
-
-CrossSiteRequestManager::~CrossSiteRequestManager() {}
-
-// static
-CrossSiteRequestManager* CrossSiteRequestManager::GetInstance() {
- return Singleton<CrossSiteRequestManager>::get();
-}
-
-} // namespace content
« no previous file with comments | « content/browser/cross_site_request_manager.h ('k') | content/browser/frame_host/cross_site_transferring_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698