| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void DidChangePriority(ResourceLoadPriority, int intra_priority_value); | 67 void DidChangePriority(ResourceLoadPriority, int intra_priority_value); |
| 68 | 68 |
| 69 // Called before start() to activate cache-aware loading if enabled in | 69 // Called before start() to activate cache-aware loading if enabled in |
| 70 // |m_resource->options()| and applicable. | 70 // |m_resource->options()| and applicable. |
| 71 void ActivateCacheAwareLoadingIfNeeded(const ResourceRequest&); | 71 void ActivateCacheAwareLoadingIfNeeded(const ResourceRequest&); |
| 72 | 72 |
| 73 bool IsCacheAwareLoadingActivated() const { | 73 bool IsCacheAwareLoadingActivated() const { |
| 74 return is_cache_aware_loading_activated_; | 74 return is_cache_aware_loading_activated_; |
| 75 } | 75 } |
| 76 | 76 |
| 77 ResourceFetcher* Fetcher() { return fetcher_; } | |
| 78 | |
| 79 // WebURLLoaderClient | 77 // WebURLLoaderClient |
| 80 // | 78 // |
| 81 // A succesful load will consist of: | 79 // A succesful load will consist of: |
| 82 // 0+ willFollowRedirect() | 80 // 0+ willFollowRedirect() |
| 83 // 0+ didSendData() | 81 // 0+ didSendData() |
| 84 // 1 didReceiveResponse() | 82 // 1 didReceiveResponse() |
| 85 // 0-1 didReceiveCachedMetadata() | 83 // 0-1 didReceiveCachedMetadata() |
| 86 // 0+ didReceiveData() or didDownloadData(), but never both | 84 // 0+ didReceiveData() or didDownloadData(), but never both |
| 87 // 1 didFinishLoading() | 85 // 1 didFinishLoading() |
| 88 // A failed load is indicated by 1 didFail(), which can occur at any time | 86 // A failed load is indicated by 1 didFail(), which can occur at any time |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 127 |
| 130 std::unique_ptr<WebURLLoader> loader_; | 128 std::unique_ptr<WebURLLoader> loader_; |
| 131 Member<ResourceFetcher> fetcher_; | 129 Member<ResourceFetcher> fetcher_; |
| 132 Member<Resource> resource_; | 130 Member<Resource> resource_; |
| 133 bool is_cache_aware_loading_activated_; | 131 bool is_cache_aware_loading_activated_; |
| 134 }; | 132 }; |
| 135 | 133 |
| 136 } // namespace blink | 134 } // namespace blink |
| 137 | 135 |
| 138 #endif | 136 #endif |
| OLD | NEW |