Chromium Code Reviews| 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 #ifndef NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 // OnBeforeURLRequest is always called before OnBeforeSendHeaders). | 235 // OnBeforeURLRequest is always called before OnBeforeSendHeaders). |
| 236 // This bit-set indicates for each request id (key) what events may be sent | 236 // This bit-set indicates for each request id (key) what events may be sent |
| 237 // next. | 237 // next. |
| 238 std::map<int, int> next_states_; | 238 std::map<int, int> next_states_; |
| 239 | 239 |
| 240 // A log that records for each request id (key) the order in which On... | 240 // A log that records for each request id (key) the order in which On... |
| 241 // functions were called. | 241 // functions were called. |
| 242 std::map<int, std::string> event_order_; | 242 std::map<int, std::string> event_order_; |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 void set_url_request_test_http_host(const std::string& host); | |
|
Paweł Hajdan Jr.
2012/02/16 15:37:24
Please make this scoped as requested in my previou
| |
| 246 const std::string& url_request_test_http_host(); | |
| 247 | |
| 245 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ | 248 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_UTIL_H_ |
| OLD | NEW |