| OLD | NEW |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 bool isControlledByServiceWorker() const override; | 92 bool isControlledByServiceWorker() const override; |
| 93 int64_t serviceWorkerID() const override; | 93 int64_t serviceWorkerID() const override; |
| 94 | 94 |
| 95 bool isMainFrame() const override; | 95 bool isMainFrame() const override; |
| 96 bool defersLoading() const override; | 96 bool defersLoading() const override; |
| 97 bool isLoadComplete() const override; | 97 bool isLoadComplete() const override; |
| 98 bool pageDismissalEventBeingDispatched() const override; | 98 bool pageDismissalEventBeingDispatched() const override; |
| 99 bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; | 99 bool updateTimingInfoForIFrameNavigation(ResourceTimingInfo*) override; |
| 100 void sendImagePing(const KURL&) override; | 100 void sendImagePing(const KURL&) override; |
| 101 void addConsoleMessage(const String&) const override; | 101 void addConsoleMessage(const String&) const override; |
| 102 void addConsoleMessage(const String&, MessageLevel) const; |
| 102 SecurityOrigin* getSecurityOrigin() const override; | 103 SecurityOrigin* getSecurityOrigin() const override; |
| 103 void upgradeInsecureRequest(FetchRequest&) override; | 104 void upgradeInsecureRequest(FetchRequest&) override; |
| 104 void addClientHintsIfNecessary(FetchRequest&) override; | 105 void addClientHintsIfNecessary(FetchRequest&) override; |
| 105 void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&) override; | 106 void addCSPHeaderIfNecessary(Resource::Type, FetchRequest&) override; |
| 106 | 107 |
| 107 MHTMLArchive* archive() const override; | 108 MHTMLArchive* archive() const override; |
| 108 | 109 |
| 109 ResourceLoadPriority modifyPriorityForExperiments(ResourceLoadPriority) over
ride; | 110 ResourceLoadPriority modifyPriorityForExperiments(ResourceLoadPriority) over
ride; |
| 110 | 111 |
| 111 void countClientHintsDPR() override; | 112 void countClientHintsDPR() override; |
| 112 void countClientHintsResourceWidth() override; | 113 void countClientHintsResourceWidth() override; |
| 113 void countClientHintsViewportWidth() override; | 114 void countClientHintsViewportWidth() override; |
| 114 | 115 |
| 115 WebTaskRunner* loadingTaskRunner() const override; | 116 WebTaskRunner* loadingTaskRunner() const override; |
| 116 | 117 |
| 117 DECLARE_VIRTUAL_TRACE(); | 118 DECLARE_VIRTUAL_TRACE(); |
| 118 | 119 |
| 119 private: | 120 private: |
| 120 explicit FrameFetchContext(DocumentLoader*, Document*); | 121 explicit FrameFetchContext(DocumentLoader*, Document*); |
| 121 inline DocumentLoader* masterDocumentLoader() const; | 122 inline DocumentLoader* masterDocumentLoader() const; |
| 122 | 123 |
| 123 LocalFrame* frame() const; // Can be null | 124 LocalFrame* frame() const; // Can be null |
| 124 void printAccessDeniedMessage(const KURL&) const; | 125 void printAccessDeniedMessage(const KURL&) const; |
| 125 ResourceRequestBlockedReason canRequestInternal(Resource::Type, const Resour
ceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchReq
uest::OriginRestriction, ResourceRequest::RedirectStatus) const; | 126 ResourceRequestBlockedReason canRequestInternal(Resource::Type, const Resour
ceRequest&, const KURL&, const ResourceLoaderOptions&, bool forPreload, FetchReq
uest::OriginRestriction, ResourceRequest::RedirectStatus) const; |
| 127 bool shouldDisallowFetchForMainFrameScript(const ResourceRequest&, FetchRequ
est::DeferOption) const; |
| 128 void emitWarningForDocWriteScripts(const String&) const; |
| 126 | 129 |
| 127 // FIXME: Oilpan: Ideally this should just be a traced Member but that will | 130 // FIXME: Oilpan: Ideally this should just be a traced Member but that will |
| 128 // currently leak because ComputedStyle and its data are not on the heap. | 131 // currently leak because ComputedStyle and its data are not on the heap. |
| 129 // See crbug.com/383860 for details. | 132 // See crbug.com/383860 for details. |
| 130 WeakMember<Document> m_document; | 133 WeakMember<Document> m_document; |
| 131 Member<DocumentLoader> m_documentLoader; | 134 Member<DocumentLoader> m_documentLoader; |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namespace blink | 137 } // namespace blink |
| 135 | 138 |
| 136 #endif | 139 #endif |
| OLD | NEW |