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

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

Issue 153503004: Add logging to CrossSiteResourceHandler and BufferedResourceHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 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 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_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "content/browser/loader/layered_resource_handler.h" 9 #include "content/browser/loader/layered_resource_handler.h"
10 #include "net/url_request/url_request_status.h" 10 #include "net/url_request/url_request_status.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 private: 49 private:
50 // Prepare to render the cross-site response in a new RenderViewHost, by 50 // Prepare to render the cross-site response in a new RenderViewHost, by
51 // telling the old RenderViewHost to run its onunload handler. 51 // telling the old RenderViewHost to run its onunload handler.
52 void StartCrossSiteTransition(int request_id, 52 void StartCrossSiteTransition(int request_id,
53 ResourceResponse* response, 53 ResourceResponse* response,
54 bool should_transfer); 54 bool should_transfer);
55 55
56 void ResumeIfDeferred(); 56 void ResumeIfDeferred();
57 57
58 // Called when about to defer a request. Sets |did_defer_| and logs the
59 // defferral
60 void OnDidDefer();
61
58 bool has_started_response_; 62 bool has_started_response_;
59 bool in_cross_site_transition_; 63 bool in_cross_site_transition_;
60 bool completed_during_transition_; 64 bool completed_during_transition_;
61 bool did_defer_; 65 bool did_defer_;
62 net::URLRequestStatus completed_status_; 66 net::URLRequestStatus completed_status_;
63 std::string completed_security_info_; 67 std::string completed_security_info_;
64 scoped_refptr<ResourceResponse> response_; 68 scoped_refptr<ResourceResponse> response_;
65 69
66 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler); 70 DISALLOW_COPY_AND_ASSIGN(CrossSiteResourceHandler);
67 }; 71 };
68 72
69 } // namespace content 73 } // namespace content
70 74
71 #endif // CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_ 75 #endif // CONTENT_BROWSER_LOADER_CROSS_SITE_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/buffered_resource_handler.cc ('k') | content/browser/loader/cross_site_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698