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

Side by Side Diff: content/browser/renderer_host/cross_site_resource_handler.h

Issue 10501004: Refactor the guts of ResourceDispatcherHostImpl into a new class named (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/renderer_host/layered_resource_handler.h" 9 #include "content/browser/renderer_host/layered_resource_handler.h"
10 #include "net/url_request/url_request_status.h" 10 #include "net/url_request/url_request_status.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 private: 48 private:
49 // Prepare to render the cross-site response in a new RenderViewHost, by 49 // Prepare to render the cross-site response in a new RenderViewHost, by
50 // telling the old RenderViewHost to run its onunload handler. 50 // telling the old RenderViewHost to run its onunload handler.
51 void StartCrossSiteTransition( 51 void StartCrossSiteTransition(
52 int request_id, 52 int request_id,
53 ResourceResponse* response, 53 ResourceResponse* response,
54 const GlobalRequestID& global_id, 54 const GlobalRequestID& global_id,
55 bool* defer); 55 bool* defer);
56 56
57 void ResumeIfDeferred();
58
57 int render_process_host_id_; 59 int render_process_host_id_;
58 int render_view_id_; 60 int render_view_id_;
59 bool has_started_response_; 61 bool has_started_response_;
60 bool in_cross_site_transition_; 62 bool in_cross_site_transition_;
61 int request_id_; 63 int request_id_;
62 bool completed_during_transition_; 64 bool completed_during_transition_;
65 bool did_defer_;
63 net::URLRequestStatus completed_status_; 66 net::URLRequestStatus completed_status_;
64 std::string completed_security_info_; 67 std::string completed_security_info_;
65 ResourceResponse* response_; 68 ResourceResponse* response_;
66 ResourceDispatcherHostImpl* rdh_; 69 ResourceDispatcherHostImpl* rdh_;
67 70
68 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); 71 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler);
69 }; 72 };
70 73
71 } // namespace content 74 } // namespace content
72 75
73 #endif // CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_ 76 #endif // CONTENT_BROWSER_RENDERER_HOST_CROSS_SITE_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698