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_RENDERER_NAVIGATION_STATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time/time.h" | |
clamy
2015/10/30 13:54:48
Unnecessary include.
| |
10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
11 #include "ui/base/page_transition_types.h" | 12 #include "ui/base/page_transition_types.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 // NavigationState is the portion of DocumentState that is affected by | 16 // NavigationState is the portion of DocumentState that is affected by |
16 // in-document navigation. | 17 // in-document navigation. |
17 // TODO(simonjam): Move this to HistoryItem's ExtraData. | 18 // TODO(simonjam): Move this to HistoryItem's ExtraData. |
18 class CONTENT_EXPORT NavigationState { | 19 class CONTENT_EXPORT NavigationState { |
19 public: | 20 public: |
20 virtual ~NavigationState(); | 21 virtual ~NavigationState(); |
21 | 22 |
22 // Contains the transition type that the browser specified when it | 23 // Contains the transition type that the browser specified when it |
23 // initiated the load. | 24 // initiated the load. |
24 virtual ui::PageTransition GetTransitionType() = 0; | 25 virtual ui::PageTransition GetTransitionType() = 0; |
25 | 26 |
26 // True iff the frame's navigation was within the same page. | 27 // True iff the frame's navigation was within the same page. |
27 virtual bool WasWithinSamePage() = 0; | 28 virtual bool WasWithinSamePage() = 0; |
28 | 29 |
29 // True if this navigation was not initiated via WebFrame::LoadRequest. | 30 // True if this navigation was not initiated via WebFrame::LoadRequest. |
30 virtual bool IsContentInitiated() = 0; | 31 virtual bool IsContentInitiated() = 0; |
31 }; | 32 }; |
32 | 33 |
33 } // namespace content | 34 } // namespace content |
34 | 35 |
35 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H | 36 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H |
OLD | NEW |