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

Side by Side Diff: content/browser/loader/navigation_url_loader_impl_core.h

Issue 874353003: New TimeToFirstURLJob* navigation metrics now work with PlzNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/time/time.h"
12 #include "content/browser/loader/navigation_url_loader_impl.h" 13 #include "content/browser/loader/navigation_url_loader_impl.h"
13 14
14 namespace net { 15 namespace net {
15 class URLRequest; 16 class URLRequest;
16 struct RedirectInfo; 17 struct RedirectInfo;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 21
21 class FrameTreeNode; 22 class FrameTreeNode;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info, 57 void NotifyRequestRedirected(const net::RedirectInfo& redirect_info,
57 ResourceResponse* response); 58 ResourceResponse* response);
58 59
59 // Notifies |loader_| on the UI thread that the response started. 60 // Notifies |loader_| on the UI thread that the response started.
60 void NotifyResponseStarted(ResourceResponse* response, 61 void NotifyResponseStarted(ResourceResponse* response,
61 scoped_ptr<StreamHandle> body); 62 scoped_ptr<StreamHandle> body);
62 63
63 // Notifies |loader_| on the UI thread that the request failed. 64 // Notifies |loader_| on the UI thread that the request failed.
64 void NotifyRequestFailed(int net_error); 65 void NotifyRequestFailed(int net_error);
65 66
67 // Notifies |loader_| on the UI thread that request is about to begin its
68 // first network request.
69 void AboutToBeginNavigation(base::TimeTicks timestamp);
70
66 private: 71 private:
67 base::WeakPtr<NavigationURLLoaderImpl> loader_; 72 base::WeakPtr<NavigationURLLoaderImpl> loader_;
68 NavigationResourceHandler* resource_handler_; 73 NavigationResourceHandler* resource_handler_;
69 74
70 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore); 75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderImplCore);
71 }; 76 };
72 77
73 } // namespace content 78 } // namespace content
74 79
75 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_ 80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_IMPL_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698