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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.h

Issue 2925963002: Create NetworkQuietDetector. (Closed)
Patch Set: Send network idle signal to GRC Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/FrameFetchContext.h
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.h b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
index 493770d9e29488c92454ea9879be851a73f8f1d2..295135b9500b131b80c3839d63f122ab020fa09b 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.h
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.h
@@ -34,6 +34,7 @@
#include "core/CoreExport.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/loader/BaseFetchContext.h"
+#include "core/loader/NetworkQuietDetector.h"
#include "platform/heap/Handle.h"
#include "platform/loader/fetch/FetchParameters.h"
#include "platform/loader/fetch/ResourceFetcher.h"
@@ -157,6 +158,10 @@ class CORE_EXPORT FrameFetchContext final : public BaseFetchContext {
void Detach() override;
+ NetworkQuietDetector& GetNetworkQuietDetector() {
+ return *network_quiet_detector_;
+ }
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -169,6 +174,7 @@ class CORE_EXPORT FrameFetchContext final : public BaseFetchContext {
// TODO(kinuko): Remove constness, these return non-const members.
DocumentLoader* MasterDocumentLoader() const;
Document* GetDocument() const;
+ void SetDocument(Document*);
LocalFrame* GetFrame() const;
LocalFrameClient* GetLocalFrameClient() const;
LocalFrame* FrameOfImportsController() const;
@@ -200,6 +206,7 @@ class CORE_EXPORT FrameFetchContext final : public BaseFetchContext {
Member<DocumentLoader> document_loader_;
Member<Document> document_;
+ Member<NetworkQuietDetector> network_quiet_detector_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698