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

Side by Side Diff: content/public/renderer/navigation_state.h

Issue 1425823002: (DEPRECATED) Send navigation_start to browser process in DidStartProvisionalLoad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browser nav-start attached to RequestExtraData Created 5 years, 1 month 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/public/browser/navigation_handle.cc ('k') | content/public/test/render_view_test.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_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
OLDNEW
« no previous file with comments | « content/public/browser/navigation_handle.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698