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

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

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