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

Side by Side Diff: third_party/WebKit/Source/core/loader/DocumentLoader.h

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: make a copy of navigationTimingInfo for ResourceFetcher Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const SubstituteData& data, 76 const SubstituteData& data,
77 ClientRedirectPolicy clientRedirectPolicy) { 77 ClientRedirectPolicy clientRedirectPolicy) {
78 DCHECK(frame); 78 DCHECK(frame);
79 79
80 return new DocumentLoader(frame, request, data, clientRedirectPolicy); 80 return new DocumentLoader(frame, request, data, clientRedirectPolicy);
81 } 81 }
82 ~DocumentLoader() override; 82 ~DocumentLoader() override;
83 83
84 LocalFrame* frame() const { return m_frame; } 84 LocalFrame* frame() const { return m_frame; }
85 85
86 ResourceTimingInfo* getNavigationTimingInfo() const; 86 std::unique_ptr<ResourceTimingInfo> getNavigationTimingInfo() const;
87 87
88 virtual void detachFromFrame(); 88 virtual void detachFromFrame();
89 89
90 unsigned long mainResourceIdentifier() const; 90 unsigned long mainResourceIdentifier() const;
91 91
92 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&, 92 void replaceDocumentWhileExecutingJavaScriptURL(const DocumentInit&,
93 const String& source); 93 const String& source);
94 94
95 const AtomicString& mimeType() const; 95 const AtomicString& mimeType() const;
96 96
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // Used to protect against reentrancy into dataReceived(). 294 // Used to protect against reentrancy into dataReceived().
295 bool m_inDataReceived; 295 bool m_inDataReceived;
296 RefPtr<SharedBuffer> m_dataBuffer; 296 RefPtr<SharedBuffer> m_dataBuffer;
297 }; 297 };
298 298
299 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader); 299 DECLARE_WEAK_IDENTIFIER_MAP(DocumentLoader);
300 300
301 } // namespace blink 301 } // namespace blink
302 302
303 #endif // DocumentLoader_h 303 #endif // DocumentLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698