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 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 | 490 |
491 virtual void RequestBeginning( | 491 virtual void RequestBeginning( |
492 net::URLRequest* request, | 492 net::URLRequest* request, |
493 ResourceContext* resource_context, | 493 ResourceContext* resource_context, |
494 appcache::AppCacheService* appcache_service, | 494 appcache::AppCacheService* appcache_service, |
495 ResourceType::Type resource_type, | 495 ResourceType::Type resource_type, |
496 int child_id, | 496 int child_id, |
497 int route_id, | 497 int route_id, |
498 bool is_continuation_of_transferred_request, | 498 bool is_continuation_of_transferred_request, |
499 ScopedVector<ResourceThrottle>* throttles) OVERRIDE { | 499 ScopedVector<ResourceThrottle>* throttles) OVERRIDE { |
500 if (user_data_.get()) { | 500 if (user_data_) { |
501 const void* key = user_data_.get(); | 501 const void* key = user_data_.get(); |
502 request->SetUserData(key, user_data_.release()); | 502 request->SetUserData(key, user_data_.release()); |
503 } | 503 } |
504 | 504 |
505 if (flags_ != NONE) { | 505 if (flags_ != NONE) { |
506 throttles->push_back(new GenericResourceThrottle( | 506 throttles->push_back(new GenericResourceThrottle( |
507 flags_, error_code_for_cancellation_)); | 507 flags_, error_code_for_cancellation_)); |
508 if (create_two_throttles_) | 508 if (create_two_throttles_) |
509 throttles->push_back(new GenericResourceThrottle( | 509 throttles->push_back(new GenericResourceThrottle( |
510 flags_, error_code_for_cancellation_)); | 510 flags_, error_code_for_cancellation_)); |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1953 } | 1953 } |
1954 | 1954 |
1955 MessageLoop::current()->RunUntilIdle(); | 1955 MessageLoop::current()->RunUntilIdle(); |
1956 | 1956 |
1957 msgs.clear(); | 1957 msgs.clear(); |
1958 accum_.GetClassifiedMessages(&msgs); | 1958 accum_.GetClassifiedMessages(&msgs); |
1959 } | 1959 } |
1960 } | 1960 } |
1961 | 1961 |
1962 } // namespace content | 1962 } // namespace content |
OLD | NEW |