OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "content/public/common/referrer.h" | 14 #include "content/public/common/referrer.h" |
| 15 #include "ipc/ipc_message_utils.h" |
15 #include "net/base/host_port_pair.h" | 16 #include "net/base/host_port_pair.h" |
16 #include "ui/base/page_transition_types.h" | 17 #include "ui/base/page_transition_types.h" |
17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 | 21 |
21 // Struct used by WebContentsObserver. | 22 // Struct used by WebContentsObserver. |
22 struct CONTENT_EXPORT FrameNavigateParams { | 23 // Note that we derived from IPC::NoParams here, because this struct is used in |
| 24 // an IPC struct as a parent. Deriving from NoParams allows us to by-pass the |
| 25 // out of line constructor checks in our clang plugins. |
| 26 struct CONTENT_EXPORT FrameNavigateParams : public IPC::NoParams { |
23 FrameNavigateParams(); | 27 FrameNavigateParams(); |
24 FrameNavigateParams(const FrameNavigateParams& other); | 28 FrameNavigateParams(const FrameNavigateParams& other); |
25 ~FrameNavigateParams(); | 29 ~FrameNavigateParams(); |
26 | 30 |
27 // Page ID of this navigation. The renderer creates a new unique page ID | 31 // Page ID of this navigation. The renderer creates a new unique page ID |
28 // anytime a new session history entry is created. This means you'll get new | 32 // anytime a new session history entry is created. This means you'll get new |
29 // page IDs for user actions, and the old page IDs will be reloaded when | 33 // page IDs for user actions, and the old page IDs will be reloaded when |
30 // iframes are loaded automatically. | 34 // iframes are loaded automatically. |
31 int32_t page_id; | 35 int32_t page_id; |
32 | 36 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Contents MIME type of main frame. | 88 // Contents MIME type of main frame. |
85 std::string contents_mime_type; | 89 std::string contents_mime_type; |
86 | 90 |
87 // Remote address of the socket which fetched this resource. | 91 // Remote address of the socket which fetched this resource. |
88 net::HostPortPair socket_address; | 92 net::HostPortPair socket_address; |
89 }; | 93 }; |
90 | 94 |
91 } // namespace content | 95 } // namespace content |
92 | 96 |
93 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ | 97 #endif // CONTENT_PUBLIC_COMMON_FRAME_NAVIGATE_PARAMS_H_ |
OLD | NEW |