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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.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
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
11 11
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <utility> 14 #include <utility>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/callback.h" 17 #include "base/callback.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/memory/scoped_vector.h" 20 #include "base/memory/scoped_vector.h"
21 #include "content/browser/frame_host/frame_tree_node.h" 21 #include "content/browser/frame_host/frame_tree_node.h"
22 #include "content/browser/frame_host/render_frame_host_impl.h" 22 #include "content/browser/frame_host/render_frame_host_impl.h"
23 #include "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/public/browser/global_request_id.h" 24 #include "content/public/browser/global_request_id.h"
25 #include "content/public/browser/navigation_data.h" 25 #include "content/public/browser/navigation_data.h"
26 #include "content/public/browser/navigation_throttle.h" 26 #include "content/public/browser/navigation_throttle.h"
27 #include "content/public/browser/navigation_type.h" 27 #include "content/public/browser/navigation_type.h"
28 #include "content/public/browser/restore_type.h"
28 #include "content/public/browser/ssl_status.h" 29 #include "content/public/browser/ssl_status.h"
29 #include "content/public/common/request_context_type.h" 30 #include "content/public/common/request_context_type.h"
30 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" 31 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h"
31 #include "url/gurl.h" 32 #include "url/gurl.h"
32 33
33 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 34 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
34 35
35 namespace content { 36 namespace content {
36 37
37 class AppCacheNavigationHandle; 38 class AppCacheNavigationHandle;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const GURL& new_referrer_url, 139 const GURL& new_referrer_url,
139 bool new_is_external_protocol) override; 140 bool new_is_external_protocol) override;
140 NavigationThrottle::ThrottleCheckResult CallWillProcessResponseForTesting( 141 NavigationThrottle::ThrottleCheckResult CallWillProcessResponseForTesting(
141 RenderFrameHost* render_frame_host, 142 RenderFrameHost* render_frame_host,
142 const std::string& raw_response_header) override; 143 const std::string& raw_response_header) override;
143 void CallDidCommitNavigationForTesting(const GURL& url) override; 144 void CallDidCommitNavigationForTesting(const GURL& url) override;
144 bool WasStartedFromContextMenu() const override; 145 bool WasStartedFromContextMenu() const override;
145 const GURL& GetSearchableFormURL() override; 146 const GURL& GetSearchableFormURL() override;
146 const std::string& GetSearchableFormEncoding() override; 147 const std::string& GetSearchableFormEncoding() override;
147 ReloadType GetReloadType() override; 148 ReloadType GetReloadType() override;
149 RestoreType GetRestoreType() override;
148 const GlobalRequestID& GetGlobalRequestID() override; 150 const GlobalRequestID& GetGlobalRequestID() override;
149 151
150 NavigationData* GetNavigationData() override; 152 NavigationData* GetNavigationData() override;
151 153
152 // The NavigatorDelegate to notify/query for various navigation events. 154 // The NavigatorDelegate to notify/query for various navigation events.
153 // Normally this is the WebContents, except if this NavigationHandle was 155 // Normally this is the WebContents, except if this NavigationHandle was
154 // created during a navigation to an interstitial page. In this case it will 156 // created during a navigation to an interstitial page. In this case it will
155 // be the InterstitialPage itself. 157 // be the InterstitialPage itself.
156 // 158 //
157 // Note: due to the interstitial navigation case, all calls that can possibly 159 // Note: due to the interstitial navigation case, all calls that can possibly
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 // Whether the navigation ended up being a download or a stream. 482 // Whether the navigation ended up being a download or a stream.
481 bool is_download_; 483 bool is_download_;
482 bool is_stream_; 484 bool is_stream_;
483 485
484 // False by default unless the navigation started within a context menu. 486 // False by default unless the navigation started within a context menu.
485 bool started_from_context_menu_; 487 bool started_from_context_menu_;
486 488
487 // Stores the reload type, or NONE if it's not a reload. 489 // Stores the reload type, or NONE if it's not a reload.
488 ReloadType reload_type_; 490 ReloadType reload_type_;
489 491
492 // Stores the restore type, or NONE it it's not a restore.
493 RestoreType restore_type_;
494
490 GURL searchable_form_url_; 495 GURL searchable_form_url_;
491 std::string searchable_form_encoding_; 496 std::string searchable_form_encoding_;
492 497
493 GURL previous_url_; 498 GURL previous_url_;
494 GURL base_url_; 499 GURL base_url_;
495 net::HostPortPair socket_address_; 500 net::HostPortPair socket_address_;
496 NavigationType navigation_type_; 501 NavigationType navigation_type_;
497 502
498 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 503 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
499 504
500 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 505 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
501 }; 506 };
502 507
503 } // namespace content 508 } // namespace content
504 509
505 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 510 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/test/BUILD.gn ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698