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

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

Issue 1186303002: Make ResourceTimingInfo non-refcounted (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 83 virtual void sendRemainingDelegateMessages(unsigned long identifier, const R esourceResponse&, int dataLength);
84 84
85 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } 85 virtual bool shouldLoadNewResource(Resource::Type) const { return false; }
86 virtual void dispatchWillRequestResource(FetchRequest*); 86 virtual void dispatchWillRequestResource(FetchRequest*);
87 virtual void willStartLoadingResource(ResourceRequest&); 87 virtual void willStartLoadingResource(ResourceRequest&);
88 virtual void didLoadResource(); 88 virtual void didLoadResource();
89 89
90 virtual void addResourceTiming(ResourceTimingInfo*, bool isMainResource); 90 virtual void addResourceTiming(const ResourceTimingInfo&);
91 virtual bool allowImage(bool, const KURL&) const { return false; } 91 virtual bool allowImage(bool, const KURL&) const { return false; }
92 virtual bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const { return false; } 92 virtual bool canRequest(Resource::Type, const ResourceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchRequest::OriginRestriction) const { return false; }
93 93
94 virtual bool isControlledByServiceWorker() const { return false; } 94 virtual bool isControlledByServiceWorker() const { return false; }
95 virtual int64_t serviceWorkerID() const { return -1; } 95 virtual int64_t serviceWorkerID() const { return -1; }
96 96
97 virtual bool isMainFrame() const { return true; } 97 virtual bool isMainFrame() const { return true; }
98 virtual bool hasSubstituteData() const { return false; } 98 virtual bool hasSubstituteData() const { return false; }
99 virtual bool defersLoading() const { return false; } 99 virtual bool defersLoading() const { return false; }
100 virtual bool isLoadComplete() const { return false; } 100 virtual bool isLoadComplete() const { return false; }
101 virtual bool pageDismissalEventBeingDispatched() const { return false; } 101 virtual bool pageDismissalEventBeingDispatched() const { return false; }
102 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { retu rn false; } 102 virtual bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) { retu rn false; }
103 virtual void sendImagePing(const KURL&); 103 virtual void sendImagePing(const KURL&);
104 virtual void addConsoleMessage(const String&) const; 104 virtual void addConsoleMessage(const String&) const;
105 virtual SecurityOrigin* securityOrigin() const { return nullptr; } 105 virtual SecurityOrigin* securityOrigin() const { return nullptr; }
106 virtual void upgradeInsecureRequest(FetchRequest&); 106 virtual void upgradeInsecureRequest(FetchRequest&);
107 virtual void addClientHintsIfNecessary(FetchRequest&); 107 virtual void addClientHintsIfNecessary(FetchRequest&);
108 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&); 108 virtual void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&);
109 109
110 protected: 110 protected:
111 FetchContext() { } 111 FetchContext() { }
112 }; 112 };
113 113
114 } 114 }
115 115
116 #endif 116 #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