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

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

Issue 281653003: DRAFT CL: Add FrameNavigationEntry and track subframe session histories. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | Annotate | Revision Log
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/history_controller.h » ('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 // TODO(creis): Update comment. This is now just for associating with a
29 // top-level NavigationEntry for history navigations. It's -1 for new
30 // navigations, and the browser will figure out where it belongs.
28 int32 page_id; 31 int32 page_id;
29 32
33 // Identifies new navigations within a frame.
34 // TODO(creis): Elaborate.
35 int64 item_sequence_number;
36 int64 document_sequence_number;
37
30 // URL of the page being loaded. 38 // URL of the page being loaded.
31 GURL url; 39 GURL url;
32 40
33 // The base URL for the page's document when the frame was committed. Empty if 41 // 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 42 // similar to 'url' above. Note that any base element in the page has not been
35 // parsed yet and is therefore not reflected. 43 // parsed yet and is therefore not reflected.
36 // This is of interest when a MHTML file is loaded, as the base URL has been 44 // 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. 45 // set to original URL of the site the MHTML represents.
38 GURL base_url; 46 GURL base_url;
39 47
(...skipping 21 matching lines...) Expand all
61 // Contents MIME type of main frame. 69 // Contents MIME type of main frame.
62 std::string contents_mime_type; 70 std::string contents_mime_type;
63 71
64 // Remote address of the socket which fetched this resource. 72 // Remote address of the socket which fetched this resource.
65 net::HostPortPair socket_address; 73 net::HostPortPair socket_address;
66 }; 74 };
67 75
68 } // namespace content 76 } // namespace content
69 77
70 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ 78 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/renderer/history_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698