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

Side by Side Diff: content/child/resource_dispatcher.h

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 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
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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_CHILD_RESOURCE_DISPATCHER_H_
8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_CHILD_RESOURCE_DISPATCHER_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // IPC::Listener implementation. 59 // IPC::Listener implementation.
60 bool OnMessageReceived(const IPC::Message& message) override; 60 bool OnMessageReceived(const IPC::Message& message) override;
61 61
62 // Call this method to load the resource synchronously (i.e., in one shot). 62 // Call this method to load the resource synchronously (i.e., in one shot).
63 // This is an alternative to the StartAsync method. Be warned that this method 63 // This is an alternative to the StartAsync method. Be warned that this method
64 // will block the calling thread until the resource is fully downloaded or an 64 // will block the calling thread until the resource is fully downloaded or an
65 // error occurs. It could block the calling thread for a long time, so only 65 // error occurs. It could block the calling thread for a long time, so only
66 // use this if you really need it! There is also no way for the caller to 66 // use this if you really need it! There is also no way for the caller to
67 // interrupt this method. Errors are reported via the status field of the 67 // interrupt this method. Errors are reported via the status field of the
68 // response parameter. 68 // response parameter.
69 void StartSync(const RequestInfo& request_info, 69 virtual void StartSync(const RequestInfo& request_info,
70 ResourceRequestBodyImpl* request_body, 70 ResourceRequestBodyImpl* request_body,
71 SyncLoadResponse* response); 71 SyncLoadResponse* response);
72 72
73 // Call this method to initiate the request. If this method succeeds, then 73 // Call this method to initiate the request. If this method succeeds, then
74 // the peer's methods will be called asynchronously to report various events. 74 // the peer's methods will be called asynchronously to report various events.
75 // Returns the request id. 75 // Returns the request id.
76 virtual int StartAsync(const RequestInfo& request_info, 76 virtual int StartAsync(const RequestInfo& request_info,
77 ResourceRequestBodyImpl* request_body, 77 ResourceRequestBodyImpl* request_body,
78 std::unique_ptr<RequestPeer> peer); 78 std::unique_ptr<RequestPeer> peer);
79 79
80 // Removes a request from the |pending_requests_| list, returning true if the 80 // Removes a request from the |pending_requests_| list, returning true if the
81 // request was found and removed. 81 // request was found and removed.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_; 243 scoped_refptr<ResourceSchedulingFilter> resource_scheduling_filter_;
244 244
245 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 245 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
246 246
247 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 247 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
248 }; 248 };
249 249
250 } // namespace content 250 } // namespace content
251 251
252 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_ 252 #endif // CONTENT_CHILD_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/child/ftp_directory_listing_response_delegate.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698