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

Side by Side Diff: content/public/common/frame_navigate_params.h

Issue 1121083004: Revert of Classify navigations without page id in parallel to the existing classifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/public/common/frame_navigate_params.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 (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 #ifndef CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/common/referrer.h" 12 #include "content/public/common/referrer.h"
13 #include "net/base/host_port_pair.h" 13 #include "net/base/host_port_pair.h"
14 #include "ui/base/page_transition_types.h" 14 #include "ui/base/page_transition_types.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 // Struct used by WebContentsObserver. 19 // Struct used by WebContentsObserver.
20 struct CONTENT_EXPORT FrameNavigateParams { 20 struct CONTENT_EXPORT FrameNavigateParams {
21 FrameNavigateParams(); 21 FrameNavigateParams();
22 ~FrameNavigateParams(); 22 ~FrameNavigateParams();
23 23
24 // Page ID of this navigation. The renderer creates a new unique page ID 24 // Page ID of this navigation. The renderer creates a new unique page ID
25 // anytime a new session history entry is created. This means you'll get new 25 // anytime a new session history entry is created. This means you'll get new
26 // page IDs for user actions, and the old page IDs will be reloaded when 26 // page IDs for user actions, and the old page IDs will be reloaded when
27 // iframes are loaded automatically. 27 // iframes are loaded automatically.
28 int32 page_id; 28 int32 page_id;
29 29
30 // The unique ID of the NavigationEntry for browser-initiated navigations.
31 // This value was given to the render process in the HistoryNavigationParams
32 // and is being returned by the renderer without it having any idea what it
33 // means. If the navigation was renderer-initiated, this value is 0.
34 int nav_entry_id;
35
36 // URL of the page being loaded. 30 // URL of the page being loaded.
37 GURL url; 31 GURL url;
38 32
39 // The base URL for the page's document when the frame was committed. Empty if 33 // The base URL for the page's document when the frame was committed. Empty if
40 // similar to 'url' above. Note that any base element in the page has not been 34 // similar to 'url' above. Note that any base element in the page has not been
41 // parsed yet and is therefore not reflected. 35 // parsed yet and is therefore not reflected.
42 // This is of interest when a MHTML file is loaded, as the base URL has been 36 // This is of interest when a MHTML file is loaded, as the base URL has been
43 // set to original URL of the site the MHTML represents. 37 // set to original URL of the site the MHTML represents.
44 GURL base_url; 38 GURL base_url;
45 39
(...skipping 21 matching lines...) Expand all
67 // Contents MIME type of main frame. 61 // Contents MIME type of main frame.
68 std::string contents_mime_type; 62 std::string contents_mime_type;
69 63
70 // Remote address of the socket which fetched this resource. 64 // Remote address of the socket which fetched this resource.
71 net::HostPortPair socket_address; 65 net::HostPortPair socket_address;
72 }; 66 };
73 67
74 } // namespace content 68 } // namespace content
75 69
76 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ 70 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/public/common/frame_navigate_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698