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

Side by Side Diff: content/browser/frame_host/navigator_delegate.h

Issue 689123003: Revert of Navigation transitions (web to native app): Pass data after starting provisional load ... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | content/browser/frame_host/navigator_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_NAVIGATOR_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "content/browser/transition_request_manager.h"
10 #include "content/public/browser/invalidate_type.h" 9 #include "content/public/browser/invalidate_type.h"
11 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
12 #include "ui/base/page_transition_types.h" 11 #include "ui/base/page_transition_types.h"
13 #include "ui/base/window_open_disposition.h" 12 #include "ui/base/window_open_disposition.h"
14 13
15 class GURL; 14 class GURL;
16 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 15 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
18 17
19 namespace content { 18 namespace content {
20 19
21 class RenderFrameHostImpl; 20 class RenderFrameHostImpl;
22 struct LoadCommittedDetails; 21 struct LoadCommittedDetails;
23 struct OpenURLParams; 22 struct OpenURLParams;
24 23
25 // A delegate API used by Navigator to notify its embedder of navigation 24 // A delegate API used by Navigator to notify its embedder of navigation
26 // related events. 25 // related events.
27 class CONTENT_EXPORT NavigatorDelegate { 26 class CONTENT_EXPORT NavigatorDelegate {
28 public: 27 public:
29 // The RenderFrameHost started a provisional load for the frame 28 // The RenderFrameHost started a provisional load for the frame
30 // represented by |render_frame_host|. 29 // represented by |render_frame_host|.
31 virtual void DidStartProvisionalLoad( 30 virtual void DidStartProvisionalLoad(
32 RenderFrameHostImpl* render_frame_host, 31 RenderFrameHostImpl* render_frame_host,
33 const GURL& validated_url, 32 const GURL& validated_url,
34 bool is_error_page, 33 bool is_error_page,
35 bool is_iframe_srcdoc) {} 34 bool is_iframe_srcdoc) {}
36 35
37 // The |render_frame_host| started a transition-flagged navigation. 36 // The |render_frame_host| started a transition-flagged navigation.
38 virtual void DidStartNavigationTransition( 37 virtual void DidStartNavigationTransition(
39 RenderFrameHostImpl* render_frame_host, 38 RenderFrameHostImpl* render_frame_host) {}
40 const TransitionLayerData& transition_data) {}
41 39
42 // A provisional load in |render_frame_host| failed. 40 // A provisional load in |render_frame_host| failed.
43 virtual void DidFailProvisionalLoadWithError( 41 virtual void DidFailProvisionalLoadWithError(
44 RenderFrameHostImpl* render_frame_host, 42 RenderFrameHostImpl* render_frame_host,
45 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {} 43 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) {}
46 44
47 // Document load in |render_frame_host| failed. 45 // Document load in |render_frame_host| failed.
48 virtual void DidFailLoadWithError( 46 virtual void DidFailLoadWithError(
49 RenderFrameHostImpl* render_frame_host, 47 RenderFrameHostImpl* render_frame_host,
50 const GURL& url, 48 const GURL& url,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 const OpenURLParams& params) {} 96 const OpenURLParams& params) {}
99 97
100 // Returns whether URLs for aborted browser-initiated navigations should be 98 // Returns whether URLs for aborted browser-initiated navigations should be
101 // preserved in the omnibox. Defaults to false. 99 // preserved in the omnibox. Defaults to false.
102 virtual bool ShouldPreserveAbortedURLs(); 100 virtual bool ShouldPreserveAbortedURLs();
103 }; 101 };
104 102
105 } // namspace content 103 } // namspace content
106 104
107 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ 105 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698