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

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

Issue 12321055: Revert 183382 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1418/src/
Patch Set: Created 7 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 // 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_COMMON_RESOURCE_DISPATCHER_H_ 7 #ifndef CONTENT_COMMON_RESOURCE_DISPATCHER_H_
8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 8 #define CONTENT_COMMON_RESOURCE_DISPATCHER_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Cancels a request in the pending_requests_ list. 54 // Cancels a request in the pending_requests_ list.
55 void CancelPendingRequest(int routing_id, int request_id); 55 void CancelPendingRequest(int routing_id, int request_id);
56 56
57 IPC::Sender* message_sender() const { 57 IPC::Sender* message_sender() const {
58 return message_sender_; 58 return message_sender_;
59 } 59 }
60 60
61 // Toggles the is_deferred attribute for the specified request. 61 // Toggles the is_deferred attribute for the specified request.
62 void SetDefersLoading(int request_id, bool value); 62 void SetDefersLoading(int request_id, bool value);
63 63
64 // Indicates the priority of the specified request changed.
65 void DidChangePriority(int routing_id, int request_id,
66 net::RequestPriority new_priority);
67
68 // This does not take ownership of the delegate. It is expected that the 64 // This does not take ownership of the delegate. It is expected that the
69 // delegate have a longer lifetime than the ResourceDispatcher. 65 // delegate have a longer lifetime than the ResourceDispatcher.
70 void set_delegate(ResourceDispatcherDelegate* delegate) { 66 void set_delegate(ResourceDispatcherDelegate* delegate) {
71 delegate_ = delegate; 67 delegate_ = delegate;
72 } 68 }
73 69
74 private: 70 private:
75 friend class ResourceDispatcherTest; 71 friend class ResourceDispatcherTest;
76 72
77 typedef std::deque<IPC::Message*> MessageQueue; 73 typedef std::deque<IPC::Message*> MessageQueue;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 base::WeakPtrFactory<ResourceDispatcher> weak_factory_; 175 base::WeakPtrFactory<ResourceDispatcher> weak_factory_;
180 176
181 ResourceDispatcherDelegate* delegate_; 177 ResourceDispatcherDelegate* delegate_;
182 178
183 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher); 179 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcher);
184 }; 180 };
185 181
186 } // namespace content 182 } // namespace content
187 183
188 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_ 184 #endif // CONTENT_COMMON_RESOURCE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698