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

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

Issue 1093923003: Change FrameTreeNode id from int64 to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change FrameTreeNode id from int64 to int Created 5 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // PageNavigator defines an interface that can be used to express the user's 5 // PageNavigator defines an interface that can be used to express the user's
6 // intention to navigate to a particular URL. The implementing class should 6 // intention to navigate to a particular URL. The implementing class should
7 // perform the navigation. 7 // perform the navigation.
8 8
9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
(...skipping 15 matching lines...) Expand all
26 class WebContents; 26 class WebContents;
27 27
28 struct CONTENT_EXPORT OpenURLParams { 28 struct CONTENT_EXPORT OpenURLParams {
29 OpenURLParams(const GURL& url, 29 OpenURLParams(const GURL& url,
30 const Referrer& referrer, 30 const Referrer& referrer,
31 WindowOpenDisposition disposition, 31 WindowOpenDisposition disposition,
32 ui::PageTransition transition, 32 ui::PageTransition transition,
33 bool is_renderer_initiated); 33 bool is_renderer_initiated);
34 OpenURLParams(const GURL& url, 34 OpenURLParams(const GURL& url,
35 const Referrer& referrer, 35 const Referrer& referrer,
36 int64 frame_tree_node_id, 36 int frame_tree_node_id,
37 WindowOpenDisposition disposition, 37 WindowOpenDisposition disposition,
38 ui::PageTransition transition, 38 ui::PageTransition transition,
39 bool is_renderer_initiated); 39 bool is_renderer_initiated);
40 ~OpenURLParams(); 40 ~OpenURLParams();
41 41
42 // The URL/referrer to be opened. 42 // The URL/referrer to be opened.
43 GURL url; 43 GURL url;
44 Referrer referrer; 44 Referrer referrer;
45 45
46 // SiteInstance of the frame that initiated the navigation or null if we 46 // SiteInstance of the frame that initiated the navigation or null if we
(...skipping 11 matching lines...) Expand all
58 58
59 // The post data when the navigation uses POST. 59 // The post data when the navigation uses POST.
60 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data; 60 scoped_refptr<base::RefCountedMemory> browser_initiated_post_data;
61 61
62 // Extra headers to add to the request for this page. Headers are 62 // Extra headers to add to the request for this page. Headers are
63 // represented as "<name>: <value>" and separated by \r\n. The entire string 63 // represented as "<name>: <value>" and separated by \r\n. The entire string
64 // is terminated by \r\n. May be empty if no extra headers are needed. 64 // is terminated by \r\n. May be empty if no extra headers are needed.
65 std::string extra_headers; 65 std::string extra_headers;
66 66
67 // The browser-global FrameTreeNode ID or -1 to indicate the main frame. 67 // The browser-global FrameTreeNode ID or -1 to indicate the main frame.
68 int64 frame_tree_node_id; 68 int frame_tree_node_id;
69 69
70 // The disposition requested by the navigation source. 70 // The disposition requested by the navigation source.
71 WindowOpenDisposition disposition; 71 WindowOpenDisposition disposition;
72 72
73 // The transition type of navigation. 73 // The transition type of navigation.
74 ui::PageTransition transition; 74 ui::PageTransition transition;
75 75
76 // Whether this navigation is initiated by the renderer process. 76 // Whether this navigation is initiated by the renderer process.
77 bool is_renderer_initiated; 77 bool is_renderer_initiated;
78 78
(...skipping 20 matching lines...) Expand all
99 // Opens a URL with the given disposition. The transition specifies how this 99 // Opens a URL with the given disposition. The transition specifies how this
100 // navigation should be recorded in the history system (for example, typed). 100 // navigation should be recorded in the history system (for example, typed).
101 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't 101 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't
102 // opened immediately. 102 // opened immediately.
103 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; 103 virtual WebContents* OpenURL(const OpenURLParams& params) = 0;
104 }; 104 };
105 105
106 } // namespace content 106 } // namespace content
107 107
108 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 108 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/public/browser/page_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698