| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 7 #ifndef CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
| 8 #define CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 8 #define CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
| 9 | 9 |
| 10 #include <deque> | 10 #include <deque> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
| 14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
| 15 #include "base/task.h" | 15 #include "base/task.h" |
| 16 #include "chrome/common/filter_policy.h" | 16 #include "chrome/common/filter_policy.h" |
| 17 #include "chrome/common/ipc_channel.h" | 17 #include "ipc/ipc_channel.h" |
| 18 #include "webkit/glue/resource_loader_bridge.h" | 18 #include "webkit/glue/resource_loader_bridge.h" |
| 19 | 19 |
| 20 struct ResourceResponseHead; | 20 struct ResourceResponseHead; |
| 21 | 21 |
| 22 // This class serves as a communication interface between the | 22 // This class serves as a communication interface between the |
| 23 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in | 23 // ResourceDispatcherHost in the browser process and the ResourceLoaderBridge in |
| 24 // the child process. It can be used from any child process. | 24 // the child process. It can be used from any child process. |
| 25 class ResourceDispatcher { | 25 class ResourceDispatcher { |
| 26 public: | 26 public: |
| 27 explicit ResourceDispatcher(IPC::Message::Sender* sender); | 27 explicit ResourceDispatcher(IPC::Message::Sender* sender); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 // All pending requests issued to the host | 122 // All pending requests issued to the host |
| 123 PendingRequestList pending_requests_; | 123 PendingRequestList pending_requests_; |
| 124 | 124 |
| 125 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; | 125 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; |
| 126 | 126 |
| 127 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); | 127 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 130 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
| OLD | NEW |