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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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) 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 // 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "net/cookies/canonical_cookie.h" 42 #include "net/cookies/canonical_cookie.h"
43 #include "net/url_request/url_request.h" 43 #include "net/url_request/url_request.h"
44 44
45 class ResourceHandler; 45 class ResourceHandler;
46 struct ResourceHostMsg_Request; 46 struct ResourceHostMsg_Request;
47 47
48 namespace net { 48 namespace net {
49 class URLRequestJobFactory; 49 class URLRequestJobFactory;
50 } 50 }
51 51
52 namespace webkit_blob { 52 namespace storage {
53 class ShareableFileReference; 53 class ShareableFileReference;
54 } 54 }
55 55
56 namespace content { 56 namespace content {
57 class ResourceContext; 57 class ResourceContext;
58 class ResourceDispatcherHostDelegate; 58 class ResourceDispatcherHostDelegate;
59 class ResourceMessageDelegate; 59 class ResourceMessageDelegate;
60 class ResourceMessageFilter; 60 class ResourceMessageFilter;
61 class ResourceRequestInfoImpl; 61 class ResourceRequestInfoImpl;
62 class SaveFileManager; 62 class SaveFileManager;
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 int BuildLoadFlagsForRequest(const ResourceHostMsg_Request& request_data, 428 int BuildLoadFlagsForRequest(const ResourceHostMsg_Request& request_data,
429 int child_id, 429 int child_id,
430 bool is_sync_load); 430 bool is_sync_load);
431 431
432 LoaderMap pending_loaders_; 432 LoaderMap pending_loaders_;
433 433
434 // Collection of temp files downloaded for child processes via 434 // Collection of temp files downloaded for child processes via
435 // the download_to_file mechanism. We avoid deleting them until 435 // the download_to_file mechanism. We avoid deleting them until
436 // the client no longer needs them. 436 // the client no longer needs them.
437 typedef std::map<int, scoped_refptr<webkit_blob::ShareableFileReference> > 437 typedef std::map<int, scoped_refptr<storage::ShareableFileReference> >
438 DeletableFilesMap; // key is request id 438 DeletableFilesMap; // key is request id
439 typedef std::map<int, DeletableFilesMap> 439 typedef std::map<int, DeletableFilesMap>
440 RegisteredTempFiles; // key is child process id 440 RegisteredTempFiles; // key is child process id
441 RegisteredTempFiles registered_temp_files_; 441 RegisteredTempFiles registered_temp_files_;
442 442
443 // A timer that periodically calls UpdateLoadStates while pending_requests_ 443 // A timer that periodically calls UpdateLoadStates while pending_requests_
444 // is not empty. 444 // is not empty.
445 scoped_ptr<base::RepeatingTimer<ResourceDispatcherHostImpl> > 445 scoped_ptr<base::RepeatingTimer<ResourceDispatcherHostImpl> >
446 update_load_states_timer_; 446 update_load_states_timer_;
447 447
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 DelegateMap delegate_map_; 516 DelegateMap delegate_map_;
517 517
518 scoped_ptr<ResourceScheduler> scheduler_; 518 scoped_ptr<ResourceScheduler> scheduler_;
519 519
520 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 520 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
521 }; 521 };
522 522
523 } // namespace content 523 } // namespace content
524 524
525 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 525 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/loader/redirect_to_file_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698