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

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

Issue 1721813002: Adding DRP specfic UMA for FirstContentfulPaint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NavigationData final draft before adding tests Created 4 years, 8 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_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/loader/resource_handler.h" 9 #include "content/browser/loader/resource_handler.h"
10 #include "content/browser/loader/stream_writer.h" 10 #include "content/browser/loader/stream_writer.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class NavigationURLLoaderImplCore; 14 class NavigationURLLoaderImplCore;
15 class ResourceDispatcherHostImpl;
15 16
16 // PlzNavigate: The leaf ResourceHandler used with NavigationURLLoaderImplCore. 17 // PlzNavigate: The leaf ResourceHandler used with NavigationURLLoaderImplCore.
17 class NavigationResourceHandler : public ResourceHandler { 18 class NavigationResourceHandler : public ResourceHandler {
18 public: 19 public:
19 NavigationResourceHandler(net::URLRequest* request, 20 NavigationResourceHandler(net::URLRequest* request,
20 NavigationURLLoaderImplCore* core); 21 NavigationURLLoaderImplCore* core,
22 ResourceDispatcherHostImpl* rdh);
21 ~NavigationResourceHandler() override; 23 ~NavigationResourceHandler() override;
22 24
23 // Called by the loader the cancel the request. 25 // Called by the loader the cancel the request.
24 void Cancel(); 26 void Cancel();
25 27
26 // Called to the loader to resume a paused redirect. 28 // Called to the loader to resume a paused redirect.
27 void FollowRedirect(); 29 void FollowRedirect();
28 30
29 // Called to proceed with the response. 31 // Called to proceed with the response.
30 void ProceedWithResponse(); 32 void ProceedWithResponse();
(...skipping 15 matching lines...) Expand all
46 bool* defer) override; 48 bool* defer) override;
47 void OnDataDownloaded(int bytes_downloaded) override; 49 void OnDataDownloaded(int bytes_downloaded) override;
48 50
49 private: 51 private:
50 // Clears |core_| and its reference to the resource handler. After calling 52 // Clears |core_| and its reference to the resource handler. After calling
51 // this, the lifetime of the request is no longer tied to |core_|. 53 // this, the lifetime of the request is no longer tied to |core_|.
52 void DetachFromCore(); 54 void DetachFromCore();
53 55
54 NavigationURLLoaderImplCore* core_; 56 NavigationURLLoaderImplCore* core_;
55 StreamWriter writer_; 57 StreamWriter writer_;
58 ResourceDispatcherHostImpl* rdh_;
56 59
57 DISALLOW_COPY_AND_ASSIGN(NavigationResourceHandler); 60 DISALLOW_COPY_AND_ASSIGN(NavigationResourceHandler);
58 }; 61 };
59 62
60 } // namespace content 63 } // namespace content
61 64
62 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_ 65 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698