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

Side by Side Diff: content/browser/loader/transfer_navigation_resource_throttle.h

Issue 15476003: Move TransferNavigationResourceThrottle into CrossSiteResourceHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove null check on cross_site_handler(). Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_LOADER_TRANSFER_NAVIGATION_RESOURCE_THROTTLE_H_
6 #define CONTENT_BROWSER_LOADER_TRANSFER_NAVIGATION_RESOURCE_THROTTLE_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/resource_throttle.h"
11
12 namespace net {
13 class URLRequest;
14 }
15
16 namespace content {
17
18 // This ResourceThrottle checks whether a navigation redirect will cause a
19 // renderer process swap. When that happens, we remember the request so
20 // that we can transfer it to be handled by the new renderer. This fixes
21 // http://crbug.com/79520
22 class TransferNavigationResourceThrottle : public ResourceThrottle {
23 public:
24 explicit TransferNavigationResourceThrottle(net::URLRequest* request);
25 virtual ~TransferNavigationResourceThrottle();
26
27 // ResourceThrottle implementation:
28 virtual void WillRedirectRequest(const GURL& new_url, bool* defer) OVERRIDE;
29
30 private:
31 net::URLRequest* request_;
32
33 DISALLOW_COPY_AND_ASSIGN(TransferNavigationResourceThrottle);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_LOADER_TRANSFER_NAVIGATION_RESOURCE_THROTTLE_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_loader.cc ('k') | content/browser/loader/transfer_navigation_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698