OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "webkit/tools/test_shell/simple_appcache_system.h" | 5 #include "webkit/tools/test_shell/simple_appcache_system.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/task.h" | 11 #include "base/task.h" |
12 #include "base/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "webkit/appcache/appcache_interceptor.h" | 13 #include "webkit/appcache/appcache_interceptor.h" |
14 #include "webkit/appcache/web_application_cache_host_impl.h" | 14 #include "webkit/appcache/web_application_cache_host_impl.h" |
15 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 15 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
16 | 16 |
17 using WebKit::WebApplicationCacheHost; | 17 using WebKit::WebApplicationCacheHost; |
18 using WebKit::WebApplicationCacheHostClient; | 18 using WebKit::WebApplicationCacheHostClient; |
19 using appcache::WebApplicationCacheHostImpl; | 19 using appcache::WebApplicationCacheHostImpl; |
20 using appcache::AppCacheBackendImpl; | 20 using appcache::AppCacheBackendImpl; |
21 using appcache::AppCacheInterceptor; | 21 using appcache::AppCacheInterceptor; |
22 using appcache::AppCacheThread; | 22 using appcache::AppCacheThread; |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 } | 445 } |
446 | 446 |
447 void SimpleAppCacheSystem::GetExtraResponseBits( | 447 void SimpleAppCacheSystem::GetExtraResponseBits( |
448 net::URLRequest* request, int64* cache_id, GURL* manifest_url) { | 448 net::URLRequest* request, int64* cache_id, GURL* manifest_url) { |
449 if (is_initialized()) { | 449 if (is_initialized()) { |
450 DCHECK(is_io_thread()); | 450 DCHECK(is_io_thread()); |
451 AppCacheInterceptor::GetExtraResponseInfo( | 451 AppCacheInterceptor::GetExtraResponseInfo( |
452 request, cache_id, manifest_url); | 452 request, cache_id, manifest_url); |
453 } | 453 } |
454 } | 454 } |
OLD | NEW |