Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceLoader.h

Issue 2736623002: Revert "Do not reuse a loading resource associated with another fetcher"
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/loader/fetch/ResourceFetcherTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698