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

Side by Side Diff: Source/core/fetch/FetchContext.h

Issue 1309533002: Merge a couple of memory cache hit notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/fetch/FetchContext.cpp » ('j') | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual void countClientHintsResourceWidth() { } 67 virtual void countClientHintsResourceWidth() { }
68 virtual void countClientHintsViewportWidth() { } 68 virtual void countClientHintsViewportWidth() { }
69 69
70 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType ); 70 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType );
71 virtual void setFirstPartyForCookies(ResourceRequest&); 71 virtual void setFirstPartyForCookies(ResourceRequest&);
72 virtual CachePolicy cachePolicy() const; 72 virtual CachePolicy cachePolicy() const;
73 virtual ResourceRequestCachePolicy resourceRequestCachePolicy(const Resource Request&, Resource::Type) const; 73 virtual ResourceRequestCachePolicy resourceRequestCachePolicy(const Resource Request&, Resource::Type) const;
74 74
75 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res ourceLoadPriority, int intraPriorityValue); 75 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res ourceLoadPriority, int intraPriorityValue);
76 virtual void dispatchWillSendRequest(unsigned long identifier, ResourceReque st&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& = Fetch InitiatorInfo()); 76 virtual void dispatchWillSendRequest(unsigned long identifier, ResourceReque st&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& = Fetch InitiatorInfo());
77 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&, const ResourceResponse&); 77 virtual void dispatchDidLoadResourceFromMemoryCache(const Resource*);
78 virtual void dispatchDidReceiveResponse(unsigned long identifier, const Reso urceResponse&, ResourceLoader* = 0); 78 virtual void dispatchDidReceiveResponse(unsigned long identifier, const Reso urceResponse&, ResourceLoader* = 0);
79 virtual void dispatchDidReceiveData(unsigned long identifier, const char* da ta, int dataLength, int encodedDataLength); 79 virtual void dispatchDidReceiveData(unsigned long identifier, const char* da ta, int dataLength, int encodedDataLength);
80 virtual void dispatchDidDownloadData(unsigned long identifier, int dataLengt h, int encodedDataLength); 80 virtual void dispatchDidDownloadData(unsigned long identifier, int dataLengt h, int encodedDataLength);
81 virtual void dispatchDidFinishLoading(unsigned long identifier, double finis hTime, int64_t encodedDataLength); 81 virtual void dispatchDidFinishLoading(unsigned long identifier, double finis hTime, int64_t encodedDataLength);
82 virtual void dispatchDidFail(unsigned long identifier, const ResourceError&, bool isInternalRequest); 82 virtual void dispatchDidFail(unsigned long identifier, const ResourceError&, bool isInternalRequest);
83 virtual void sendRemainingDelegateMessages(unsigned long identifier, const R esourceResponse&, int dataLength);
84 83
85 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } 84 virtual bool shouldLoadNewResource(Resource::Type) const { return false; }
86 virtual void willStartLoadingResource(ResourceRequest&); 85 virtual void willStartLoadingResource(ResourceRequest&);
87 virtual void didLoadResource(); 86 virtual void didLoadResource();
88 87
89 virtual void addResourceTiming(const ResourceTimingInfo&); 88 virtual void addResourceTiming(const ResourceTimingInfo&);
90 virtual bool allowImage(bool, const KURL&) const { return false; } 89 virtual bool allowImage(bool, const KURL&) const { return false; }
91 virtual bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const { return false; } 90 virtual bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const { return false; }
92 91
93 virtual bool isControlledByServiceWorker() const { return false; } 92 virtual bool isControlledByServiceWorker() const { return false; }
(...skipping 17 matching lines...) Expand all
111 virtual bool fetchIncreaseAsyncScriptPriority() const { return false; } 110 virtual bool fetchIncreaseAsyncScriptPriority() const { return false; }
112 virtual bool fetchIncreasePriorities() const { return false; } 111 virtual bool fetchIncreasePriorities() const { return false; }
113 112
114 protected: 113 protected:
115 FetchContext() { } 114 FetchContext() { }
116 }; 115 };
117 116
118 } 117 }
119 118
120 #endif 119 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/FetchContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698