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

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

Issue 2987563004: Revert of Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (Closed)
Patch Set: Created 3 years, 5 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 #include <vector>
11 10
12 #include "base/supports_user_data.h"
13 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
14 #include "content/public/browser/navigation_throttle.h" 12 #include "content/public/browser/navigation_throttle.h"
15 #include "content/public/browser/reload_type.h" 13 #include "content/public/browser/reload_type.h"
16 #include "content/public/browser/restore_type.h" 14 #include "content/public/browser/restore_type.h"
17 #include "content/public/common/referrer.h" 15 #include "content/public/common/referrer.h"
18 #include "net/base/host_port_pair.h" 16 #include "net/base/host_port_pair.h"
19 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
20 #include "net/http/http_response_info.h" 18 #include "net/http/http_response_info.h"
21 #include "ui/base/page_transition_types.h" 19 #include "ui/base/page_transition_types.h"
22 20
(...skipping 10 matching lines...) Expand all
33 class RenderFrameHost; 31 class RenderFrameHost;
34 class SiteInstance; 32 class SiteInstance;
35 class WebContents; 33 class WebContents;
36 34
37 // A NavigationHandle tracks information related to a single navigation. 35 // A NavigationHandle tracks information related to a single navigation.
38 // NavigationHandles are provided to several WebContentsObserver methods to 36 // NavigationHandles are provided to several WebContentsObserver methods to
39 // allow observers to track specific navigations. Observers should clear any 37 // allow observers to track specific navigations. Observers should clear any
40 // references to a NavigationHandle at the time of 38 // references to a NavigationHandle at the time of
41 // WebContentsObserver::DidFinishNavigation, just before the handle is 39 // WebContentsObserver::DidFinishNavigation, just before the handle is
42 // destroyed. 40 // destroyed.
43 class CONTENT_EXPORT NavigationHandle : public base::SupportsUserData { 41 class CONTENT_EXPORT NavigationHandle {
44 public: 42 public:
45 ~NavigationHandle() override {} 43 virtual ~NavigationHandle() {}
46 44
47 // Parameters available at navigation start time ----------------------------- 45 // Parameters available at navigation start time -----------------------------
48 // 46 //
49 // These parameters are always available during the navigation. Note that 47 // These parameters are always available during the navigation. Note that
50 // some may change during navigation (e.g. due to server redirects). 48 // some may change during navigation (e.g. due to server redirects).
51 49
52 // The URL the frame is navigating to. This may change during the navigation 50 // The URL the frame is navigating to. This may change during the navigation
53 // when encountering a server redirect. 51 // when encountering a server redirect.
54 // This URL may not be the same as the virtual URL returned from 52 // This URL may not be the same as the virtual URL returned from
55 // WebContents::GetVisibleURL and WebContents::GetLastCommittedURL. For 53 // WebContents::GetVisibleURL and WebContents::GetLastCommittedURL. For
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 287
290 // The NavigationData that the embedder returned from 288 // The NavigationData that the embedder returned from
291 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 289 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
292 // be a clone of the NavigationData. 290 // be a clone of the NavigationData.
293 virtual NavigationData* GetNavigationData() = 0; 291 virtual NavigationData* GetNavigationData() = 0;
294 }; 292 };
295 293
296 } // namespace content 294 } // namespace content
297 295
298 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 296 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.cc ('k') | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698