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

Side by Side Diff: content/public/browser/resource_dispatcher_host_delegate.h

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missing Header Include Created 4 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 namespace net { 24 namespace net {
25 class AuthChallengeInfo; 25 class AuthChallengeInfo;
26 class URLRequest; 26 class URLRequest;
27 } 27 }
28 28
29 namespace content { 29 namespace content {
30 30
31 class AppCacheService; 31 class AppCacheService;
32 class NavigationData;
32 class ResourceContext; 33 class ResourceContext;
33 class ResourceDispatcherHostLoginDelegate; 34 class ResourceDispatcherHostLoginDelegate;
34 class ResourceThrottle; 35 class ResourceThrottle;
35 struct Referrer; 36 struct Referrer;
36 struct ResourceResponse; 37 struct ResourceResponse;
37 struct StreamInfo; 38 struct StreamInfo;
38 39
39 // Interface that the embedder provides to ResourceDispatcherHost to allow 40 // Interface that the embedder provides to ResourceDispatcherHost to allow
40 // observing and modifying requests. 41 // observing and modifying requests.
41 class CONTENT_EXPORT ResourceDispatcherHostDelegate { 42 class CONTENT_EXPORT ResourceDispatcherHostDelegate {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ResourceResponse* response); 124 ResourceResponse* response);
124 125
125 // Notification that a request has completed. 126 // Notification that a request has completed.
126 virtual void RequestComplete(net::URLRequest* url_request); 127 virtual void RequestComplete(net::URLRequest* url_request);
127 128
128 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It 129 // Asks the embedder if Lo-Fi mode should be enabled for the given request. It
129 // is only called for requests with an unspecified Lo-Fi value. 130 // is only called for requests with an unspecified Lo-Fi value.
130 virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request, 131 virtual bool ShouldEnableLoFiMode(const net::URLRequest& url_request,
131 content::ResourceContext* resource_context); 132 content::ResourceContext* resource_context);
132 133
134 // Asks the embedder for NavigationData related to this request. It is only
135 // called for requests that are navigation requests.
136 virtual std::unique_ptr<NavigationData> GetNavigationData(
137 net::URLRequest* request) const;
bengr 2016/04/29 21:14:23 Can this parameter be const?
RyanSturm 2016/05/02 19:52:22 Done.
138
133 protected: 139 protected:
134 ResourceDispatcherHostDelegate(); 140 ResourceDispatcherHostDelegate();
135 virtual ~ResourceDispatcherHostDelegate(); 141 virtual ~ResourceDispatcherHostDelegate();
136 }; 142 };
137 143
138 } // namespace content 144 } // namespace content
139 145
140 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 146 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698