OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/task.h" | |
14 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
15 #include "webkit/appcache/appcache_interceptor.h" | 14 #include "webkit/appcache/appcache_interceptor.h" |
16 #include "webkit/appcache/web_application_cache_host_impl.h" | 15 #include "webkit/appcache/web_application_cache_host_impl.h" |
17 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" | 16 #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" |
18 | 17 |
19 using WebKit::WebApplicationCacheHost; | 18 using WebKit::WebApplicationCacheHost; |
20 using WebKit::WebApplicationCacheHostClient; | 19 using WebKit::WebApplicationCacheHostClient; |
21 using appcache::WebApplicationCacheHostImpl; | 20 using appcache::WebApplicationCacheHostImpl; |
22 using appcache::AppCacheBackendImpl; | 21 using appcache::AppCacheBackendImpl; |
23 using appcache::AppCacheInterceptor; | 22 using appcache::AppCacheInterceptor; |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 454 } |
456 | 455 |
457 void SimpleAppCacheSystem::GetExtraResponseBits( | 456 void SimpleAppCacheSystem::GetExtraResponseBits( |
458 net::URLRequest* request, int64* cache_id, GURL* manifest_url) { | 457 net::URLRequest* request, int64* cache_id, GURL* manifest_url) { |
459 if (is_initialized()) { | 458 if (is_initialized()) { |
460 DCHECK(is_io_thread()); | 459 DCHECK(is_io_thread()); |
461 AppCacheInterceptor::GetExtraResponseInfo( | 460 AppCacheInterceptor::GetExtraResponseInfo( |
462 request, cache_id, manifest_url); | 461 request, cache_id, manifest_url); |
463 } | 462 } |
464 } | 463 } |
OLD | NEW |