OLD | NEW |
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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 | 567 |
568 ResourceDispatcherHostDelegate* delegate_; | 568 ResourceDispatcherHostDelegate* delegate_; |
569 | 569 |
570 bool allow_cross_origin_auth_prompt_; | 570 bool allow_cross_origin_auth_prompt_; |
571 | 571 |
572 // http://crbug.com/90971 - Assists in tracking down use-after-frees on | 572 // http://crbug.com/90971 - Assists in tracking down use-after-frees on |
573 // shutdown. | 573 // shutdown. |
574 std::set<const ResourceContext*> active_resource_contexts_; | 574 std::set<const ResourceContext*> active_resource_contexts_; |
575 | 575 |
576 typedef std::map<GlobalRequestID, | 576 typedef std::map<GlobalRequestID, |
577 ObserverList<ResourceMessageDelegate>*> DelegateMap; | 577 base::ObserverList<ResourceMessageDelegate>*> DelegateMap; |
578 DelegateMap delegate_map_; | 578 DelegateMap delegate_map_; |
579 | 579 |
580 scoped_ptr<ResourceScheduler> scheduler_; | 580 scoped_ptr<ResourceScheduler> scheduler_; |
581 | 581 |
582 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); | 582 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); |
583 }; | 583 }; |
584 | 584 |
585 } // namespace content | 585 } // namespace content |
586 | 586 |
587 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ | 587 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ |
OLD | NEW |