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

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

Issue 7461106: Inform disk cache of WebKit memory cache hits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move http check Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 return save_file_manager_; 153 return save_file_manager_;
154 } 154 }
155 155
156 WebKitThread* webkit_thread() const { 156 WebKitThread* webkit_thread() const {
157 return webkit_thread_.get(); 157 return webkit_thread_.get();
158 } 158 }
159 159
160 // Called when the unload handler for a cross-site request has finished. 160 // Called when the unload handler for a cross-site request has finished.
161 void OnSwapOutACK(const ViewMsg_SwapOut_Params& params); 161 void OnSwapOutACK(const ViewMsg_SwapOut_Params& params);
162 162
163 // Called when the renderer loads a resource from its internal cache.
164 void OnDidLoadResourceFromMemoryCache(const GURL& url,
165 const std::string& security_info,
166 const std::string& http_method,
167 ResourceType::Type resource_type);
168
163 // Force cancels any pending requests for the given process. 169 // Force cancels any pending requests for the given process.
164 void CancelRequestsForProcess(int process_unique_id); 170 void CancelRequestsForProcess(int process_unique_id);
165 171
166 // Force cancels any pending requests for the given route id. This method 172 // Force cancels any pending requests for the given route id. This method
167 // acts like CancelRequestsForProcess when route_id is -1. 173 // acts like CancelRequestsForProcess when route_id is -1.
168 void CancelRequestsForRoute(int process_unique_id, int route_id); 174 void CancelRequestsForRoute(int process_unique_id, int route_id);
169 175
170 // Force cancels any pending requests for the given |context|. This is 176 // Force cancels any pending requests for the given |context|. This is
171 // necessary to ensure that before |context| goes away, all requests 177 // necessary to ensure that before |context| goes away, all requests
172 // for it are dead. 178 // for it are dead.
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 508
503 ResourceDispatcherHostDelegate* delegate_; 509 ResourceDispatcherHostDelegate* delegate_;
504 510
505 static bool is_prefetch_enabled_; 511 static bool is_prefetch_enabled_;
506 bool allow_cross_origin_auth_prompt_; 512 bool allow_cross_origin_auth_prompt_;
507 513
508 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 514 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
509 }; 515 };
510 516
511 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 517 #endif // CONTENT_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698