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

Side by Side Diff: content/public/browser/navigation_type.h

Issue 1309323004: Create a NavigationEntry for the initial blank page. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GetEntryCount, more tests Created 5 years, 2 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
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/renderer/render_frame_impl.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_BROWSER_NAVIGATION_TYPE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_TYPE_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_TYPE_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_TYPE_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 // Indicates different types of navigations that can occur that we will handle 10 // Indicates different types of navigations that can occur that we will handle
(...skipping 27 matching lines...) Expand all
38 // A subframe in the page was automatically loaded or navigated to such that 38 // A subframe in the page was automatically loaded or navigated to such that
39 // a new navigation entry should not be created. There are two cases: 39 // a new navigation entry should not be created. There are two cases:
40 // 1. Stuff like iframes containing ads that the page loads automatically. 40 // 1. Stuff like iframes containing ads that the page loads automatically.
41 // The user doesn't want to see these, so we just update the existing 41 // The user doesn't want to see these, so we just update the existing
42 // navigation entry. 42 // navigation entry.
43 // 2. Going back/forward to previous subframe navigations. We don't create 43 // 2. Going back/forward to previous subframe navigations. We don't create
44 // a new entry here either, just update the last committed entry. 44 // a new entry here either, just update the last committed entry.
45 // These two cases are actually pretty different, they just happen to 45 // These two cases are actually pretty different, they just happen to
46 // require almost the same code to handle. 46 // require almost the same code to handle.
47 NAVIGATION_TYPE_AUTO_SUBFRAME, 47 NAVIGATION_TYPE_AUTO_SUBFRAME,
48
49 // Nothing happened. This happens when we get information about a page we
50 // don't know anything about. It can also happen when an iframe in a popup
51 // navigated to about:blank is navigated. Nothing needs to be done.
52 NAVIGATION_TYPE_NAV_IGNORE,
53 }; 48 };
54 49
55 } // namespace content 50 } // namespace content
56 51
57 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_TYPE_H_ 52 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_TYPE_H_
OLDNEW
« no previous file with comments | « content/public/browser/navigation_controller.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698