| 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 24 matching lines...) Expand all Loading... |
| 35 // creates a ResourceLoaderBridge for this type of dispatcher, this is so | 35 // creates a ResourceLoaderBridge for this type of dispatcher, this is so |
| 36 // this can be tested regardless of the ResourceLoaderBridge::Create | 36 // this can be tested regardless of the ResourceLoaderBridge::Create |
| 37 // implementation. | 37 // implementation. |
| 38 webkit_glue::ResourceLoaderBridge* CreateBridge(const std::string& method, | 38 webkit_glue::ResourceLoaderBridge* CreateBridge(const std::string& method, |
| 39 const GURL& url, | 39 const GURL& url, |
| 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 const std::string& default_mime_type, |
| 45 int load_flags, | 46 int load_flags, |
| 46 int origin_pid, | 47 int origin_pid, |
| 47 ResourceType::Type resource_type, | 48 ResourceType::Type resource_type, |
| 48 uint32 request_context /* used for plugin->browser requests */, | 49 uint32 request_context /* used for plugin->browser requests */, |
| 49 int route_id); | 50 int route_id); |
| 50 | 51 |
| 51 // Adds a request from the pending_requests_ list, returning the new | 52 // Adds a request from the pending_requests_ list, returning the new |
| 52 // requests' ID | 53 // requests' ID |
| 53 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback, | 54 int AddPendingRequest(webkit_glue::ResourceLoaderBridge::Peer* callback, |
| 54 ResourceType::Type resource_type); | 55 ResourceType::Type resource_type); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 118 |
| 118 // All pending requests issued to the host | 119 // All pending requests issued to the host |
| 119 PendingRequestList pending_requests_; | 120 PendingRequestList pending_requests_; |
| 120 | 121 |
| 121 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; | 122 ScopedRunnableMethodFactory<ResourceDispatcher> method_factory_; |
| 122 | 123 |
| 123 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); | 124 DISALLOW_EVIL_CONSTRUCTORS(ResourceDispatcher); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ | 127 #endif // CHROME_COMMON_RESOURCE_DISPATCHER_H__ |
| OLD | NEW |