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

Side by Side Diff: content/public/child/request_peer.h

Issue 669073003: Get rid of net::LOAD_ENABLE_UPLOAD_PROGRESS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed uninitialized value use. Created 6 years, 1 month 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
« no previous file with comments | « content/common/resource_messages.h ('k') | net/base/load_flags_list.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_CHILD_REQUEST_PEER_H_ 5 #ifndef CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
6 #define CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ 6 #define CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 // This is implemented by our custom resource loader within content. The Peer 27 // This is implemented by our custom resource loader within content. The Peer
28 // and it's bridge should have identical lifetimes as they represent each end of 28 // and it's bridge should have identical lifetimes as they represent each end of
29 // a communication channel. 29 // a communication channel.
30 // 30 //
31 // These callbacks mirror net::URLRequest::Delegate and the order and 31 // These callbacks mirror net::URLRequest::Delegate and the order and
32 // conditions in which they will be called are identical. See url_request.h 32 // conditions in which they will be called are identical. See url_request.h
33 // for more information. 33 // for more information.
34 class CONTENT_EXPORT RequestPeer { 34 class CONTENT_EXPORT RequestPeer {
35 public: 35 public:
36 // Called as upload progress is made. 36 // Called as upload progress is made.
37 // note: only for requests with LOAD_ENABLE_UPLOAD_PROGRESS set 37 // note: only for requests with upload progress enabled.
38 virtual void OnUploadProgress(uint64 position, uint64 size) = 0; 38 virtual void OnUploadProgress(uint64 position, uint64 size) = 0;
39 39
40 // Called when a redirect occurs. The implementation may return false to 40 // Called when a redirect occurs. The implementation may return false to
41 // suppress the redirect. The ResourceResponseInfo provides information about 41 // suppress the redirect. The ResourceResponseInfo provides information about
42 // the redirect response and the RedirectInfo includes information about the 42 // the redirect response and the RedirectInfo includes information about the
43 // request to be made if the method returns true. 43 // request to be made if the method returns true.
44 virtual bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, 44 virtual bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
45 const ResourceResponseInfo& info) = 0; 45 const ResourceResponseInfo& info) = 0;
46 46
47 // Called when response headers are available (after all redirects have 47 // Called when response headers are available (after all redirects have
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const base::TimeTicks& completion_time, 79 const base::TimeTicks& completion_time,
80 int64 total_transfer_size) = 0; 80 int64 total_transfer_size) = 0;
81 81
82 protected: 82 protected:
83 virtual ~RequestPeer() {} 83 virtual ~RequestPeer() {}
84 }; 84 };
85 85
86 } // namespace content 86 } // namespace content
87 87
88 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ 88 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | net/base/load_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698