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" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 | 429 |
430 // The IO thread needs to be running for this system to work. | 430 // The IO thread needs to be running for this system to work. |
431 SimpleResourceLoaderBridge::EnsureIOThread(); | 431 SimpleResourceLoaderBridge::EnsureIOThread(); |
432 | 432 |
433 if (!is_initialized()) | 433 if (!is_initialized()) |
434 return NULL; | 434 return NULL; |
435 return new WebApplicationCacheHostImpl(client, backend_proxy_.get()); | 435 return new WebApplicationCacheHostImpl(client, backend_proxy_.get()); |
436 } | 436 } |
437 | 437 |
438 void SimpleAppCacheSystem::SetExtraRequestBits( | 438 void SimpleAppCacheSystem::SetExtraRequestBits( |
439 URLRequest* request, int host_id, ResourceType::Type resource_type) { | 439 net::URLRequest* request, int host_id, ResourceType::Type resource_type) { |
440 if (is_initialized()) { | 440 if (is_initialized()) { |
441 DCHECK(is_io_thread()); | 441 DCHECK(is_io_thread()); |
442 AppCacheInterceptor::SetExtraRequestInfo( | 442 AppCacheInterceptor::SetExtraRequestInfo( |
443 request, service_, kSingleProcessId, host_id, resource_type); | 443 request, service_, kSingleProcessId, host_id, resource_type); |
444 } | 444 } |
445 } | 445 } |
446 | 446 |
447 void SimpleAppCacheSystem::GetExtraResponseBits( | 447 void SimpleAppCacheSystem::GetExtraResponseBits( |
448 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 |