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

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

Issue 1002803002: Classify navigations without page id in parallel to the existing classifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better crash url Created 5 years, 9 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 #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;
Charlie Reis 2015/03/12 18:28:17 Same here.
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.
34 int nav_entry_id;
35
30 // URL of the page being loaded. 36 // URL of the page being loaded.
31 GURL url; 37 GURL url;
32 38
33 // The base URL for the page's document when the frame was committed. Empty if 39 // The base URL for the page's document when the frame was committed. Empty if
34 // similar to 'url' above. Note that any base element in the page has not been 40 // similar to 'url' above. Note that any base element in the page has not been
35 // parsed yet and is therefore not reflected. 41 // parsed yet and is therefore not reflected.
36 // This is of interest when a MHTML file is loaded, as the base URL has been 42 // This is of interest when a MHTML file is loaded, as the base URL has been
37 // set to original URL of the site the MHTML represents. 43 // set to original URL of the site the MHTML represents.
38 GURL base_url; 44 GURL base_url;
39 45
(...skipping 21 matching lines...) Expand all
61 // Contents MIME type of main frame. 67 // Contents MIME type of main frame.
62 std::string contents_mime_type; 68 std::string contents_mime_type;
63 69
64 // Remote address of the socket which fetched this resource. 70 // Remote address of the socket which fetched this resource.
65 net::HostPortPair socket_address; 71 net::HostPortPair socket_address;
66 }; 72 };
67 73
68 } // namespace content 74 } // namespace content
69 75
70 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ 76 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698