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

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

Issue 2694183004: Adding TabRestore PLM UMA (Closed)
Patch Set: rebase + comments 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_NAVIGATION_HANDLE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/browser/navigation_throttle.h" 12 #include "content/public/browser/navigation_throttle.h"
13 #include "content/public/browser/reload_type.h" 13 #include "content/public/browser/reload_type.h"
14 #include "content/public/browser/restore_type.h"
14 #include "content/public/common/referrer.h" 15 #include "content/public/common/referrer.h"
15 #include "net/base/host_port_pair.h" 16 #include "net/base/host_port_pair.h"
16 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
17 #include "net/http/http_response_info.h" 18 #include "net/http/http_response_info.h"
18 #include "ui/base/page_transition_types.h" 19 #include "ui/base/page_transition_types.h"
19 20
20 class GURL; 21 class GURL;
21 22
22 namespace net { 23 namespace net {
23 class HttpResponseHeaders; 24 class HttpResponseHeaders;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Returns the URL and encoding of an INPUT field that corresponds to a 99 // Returns the URL and encoding of an INPUT field that corresponds to a
99 // searchable form request. 100 // searchable form request.
100 virtual const GURL& GetSearchableFormURL() = 0; 101 virtual const GURL& GetSearchableFormURL() = 0;
101 virtual const std::string& GetSearchableFormEncoding() = 0; 102 virtual const std::string& GetSearchableFormEncoding() = 0;
102 103
103 // Returns the reload type for this navigation. Note that renderer-initiated 104 // Returns the reload type for this navigation. Note that renderer-initiated
104 // reloads (via location.reload()) won't count as a reload and do return 105 // reloads (via location.reload()) won't count as a reload and do return
105 // ReloadType::NONE. 106 // ReloadType::NONE.
106 virtual ReloadType GetReloadType() = 0; 107 virtual ReloadType GetReloadType() = 0;
107 108
109 // Returns the restore type for this navigation. RestoreType::NONE is returned
110 // if the navigation is not a restore.
111 virtual RestoreType GetRestoreType() = 0;
112
108 // Parameters available at network request start time ------------------------ 113 // Parameters available at network request start time ------------------------
109 // 114 //
110 // The following parameters are only available when the network request is 115 // The following parameters are only available when the network request is
111 // made for the navigation (or at commit time if no network request is made). 116 // made for the navigation (or at commit time if no network request is made).
112 // This corresponds to NavigationThrottle::WillSendRequest. They should not 117 // This corresponds to NavigationThrottle::WillSendRequest. They should not
113 // be queried before that. 118 // be queried before that.
114 119
115 // Whether the navigation is done using HTTP POST method. This may change 120 // Whether the navigation is done using HTTP POST method. This may change
116 // during the navigation (e.g. after encountering a server redirect). 121 // during the navigation (e.g. after encountering a server redirect).
117 // 122 //
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 281
277 // The NavigationData that the embedder returned from 282 // The NavigationData that the embedder returned from
278 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 283 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
279 // be a clone of the NavigationData. 284 // be a clone of the NavigationData.
280 virtual NavigationData* GetNavigationData() = 0; 285 virtual NavigationData* GetNavigationData() = 0;
281 }; 286 };
282 287
283 } // namespace content 288 } // namespace content
284 289
285 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 290 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698