| 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> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 const GURL& policy_url, | 40 const GURL& policy_url, |
| 41 const GURL& referrer, | 41 const GURL& referrer, |
| 42 const std::string& frame_origin, | 42 const std::string& frame_origin, |
| 43 const std::string& main_frame_origin, | 43 const std::string& main_frame_origin, |
| 44 const std::string& headers, | 44 const std::string& headers, |
| 45 int load_flags, | 45 int load_flags, |
| 46 int origin_pid, | 46 int origin_pid, |
| 47 ResourceType::Type resource_type, | 47 ResourceType::Type resource_type, |
| 48 uint32 request_context /* used for plugin->browser requests */, | 48 uint32 request_context /* used for plugin->browser requests */, |
| 49 int app_cache_context_id, | 49 int app_cache_context_id, |
| 50 int route_id); | 50 int route_id, |
| 51 const std::string& disposition_fallback_charset); |
| 51 | 52 |
| 52 // Adds a request from the pending_requests_ list, returning the new | 53 // Adds a request from the pending_requests_ list, returning the new |
| 53 // requests' ID | 54 // requests' ID |
| 54 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback, | 55 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback, |
| 55 ResourceType::Type resource_type); | 56 ResourceType::Type resource_type); |
| 56 | 57 |
| 57 // Removes a request from the pending_requests_ list, returning true if the | 58 // Removes a request from the pending_requests_ list, returning true if the |
| 58 // request was found and removed. | 59 // request was found and removed. |
| 59 bool RemovePendingRequest(int request_id); | 60 bool RemovePendingRequest(int request_id); |
| 60 | 61 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 119 |
| 119 // All pending requests issued to the host | 120 // All pending requests issued to the host |
| 120 PendingRequestList pending_requests_; | 121 PendingRequestList pending_requests_; |
| 121 | 122 |
| 122 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; | 123 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; |
| 123 | 124 |
| 124 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); | 125 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 128 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
| OLD | NEW |