diff options
Diffstat (limited to 'chrome_frame/test/net/test_automation_provider.cc')
-rw-r--r-- | chrome_frame/test/net/test_automation_provider.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome_frame/test/net/test_automation_provider.cc b/chrome_frame/test/net/test_automation_provider.cc index 3a56aa4..f1a3b13 100644 --- a/chrome_frame/test/net/test_automation_provider.cc +++ b/chrome_frame/test/net/test_automation_provider.cc @@ -69,8 +69,14 @@ URLRequestJob* TestAutomationProvider::MaybeIntercept(URLRequest* request) { // and only intercept requests that belong to that thread. if (request->GetUserData(NULL) == NULL) { DCHECK(tab_handle_ != -1); + // We generate our own request id which is also what + // ResourceDispatcherHost does (well, the id is actually generated by + // ResourceDispatcher). Since these requests are divided into with + // and without userdata, we're OK. However, just to make debugging + // a little easier, we have a significantly higher start value. + static int new_id = 0x00100000; URLRequestAutomationJob* job = new URLRequestAutomationJob(request, - tab_handle_, filter_); + tab_handle_, new_id++, filter_); return job; } } |