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

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

Issue 10700170: Fix transferring processes during a redirect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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_RESOURCE_LOADER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/browser/renderer_host/resource_handler.h" 10 #include "content/browser/renderer_host/resource_handler.h"
(...skipping 21 matching lines...) Expand all
32 ResourceLoaderDelegate* delegate); 32 ResourceLoaderDelegate* delegate);
33 virtual ~ResourceLoader(); 33 virtual ~ResourceLoader();
34 34
35 void StartRequest(); 35 void StartRequest();
36 void CancelRequest(bool from_renderer); 36 void CancelRequest(bool from_renderer);
37 37
38 void ReportUploadProgress(); 38 void ReportUploadProgress();
39 39
40 bool is_transferring() const { return is_transferring_; } 40 bool is_transferring() const { return is_transferring_; }
41 void MarkAsTransferring(); 41 void MarkAsTransferring();
42 void WillCompleteTransfer();
42 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler); 43 void CompleteTransfer(scoped_ptr<ResourceHandler> new_handler);
43 44
44 net::URLRequest* request() { return request_.get(); } 45 net::URLRequest* request() { return request_.get(); }
45 ResourceRequestInfoImpl* GetRequestInfo(); 46 ResourceRequestInfoImpl* GetRequestInfo();
46 47
47 void ClearLoginDelegate(); 48 void ClearLoginDelegate();
48 void ClearSSLClientAuthHandler(); 49 void ClearSSLClientAuthHandler();
49 50
50 // IPC message handlers: 51 // IPC message handlers:
51 void OnUploadProgressACK(); 52 void OnUploadProgressACK();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // consumer. We are waiting for a notification to complete the transfer, at 113 // consumer. We are waiting for a notification to complete the transfer, at
113 // which point we'll receive a new ResourceHandler. 114 // which point we'll receive a new ResourceHandler.
114 bool is_transferring_; 115 bool is_transferring_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); 117 DISALLOW_COPY_AND_ASSIGN(ResourceLoader);
117 }; 118 };
118 119
119 } // namespace content 120 } // namespace content
120 121
121 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_ 122 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_LOADER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_unittest.cc ('k') | content/browser/renderer_host/resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698