OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/browser/tab_contents/navigation_controller.h" | 5 #include "content/browser/tab_contents/navigation_controller.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/browser_url_handler.h" | 12 #include "chrome/browser/browser_url_handler.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/chrome_constants.h" | |
15 #include "content/browser/child_process_security_policy.h" | 14 #include "content/browser/child_process_security_policy.h" |
16 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 15 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
17 #include "content/browser/site_instance.h" | 16 #include "content/browser/site_instance.h" |
18 #include "content/browser/tab_contents/interstitial_page.h" | 17 #include "content/browser/tab_contents/interstitial_page.h" |
19 #include "content/browser/tab_contents/navigation_details.h" | 18 #include "content/browser/tab_contents/navigation_details.h" |
20 #include "content/browser/tab_contents/navigation_entry.h" | 19 #include "content/browser/tab_contents/navigation_entry.h" |
21 #include "content/browser/tab_contents/tab_contents.h" | 20 #include "content/browser/tab_contents/tab_contents.h" |
22 #include "content/browser/tab_contents/tab_contents_delegate.h" | 21 #include "content/browser/tab_contents/tab_contents_delegate.h" |
23 #include "content/common/content_constants.h" | 22 #include "content/common/content_constants.h" |
24 #include "content/common/navigation_types.h" | 23 #include "content/common/navigation_types.h" |
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 size_t insert_index = 0; | 1171 size_t insert_index = 0; |
1173 for (int i = 0; i < max_index; i++) { | 1172 for (int i = 0; i < max_index; i++) { |
1174 // When cloning a tab, copy all entries except interstitial pages | 1173 // When cloning a tab, copy all entries except interstitial pages |
1175 if (source.entries_[i].get()->page_type() != INTERSTITIAL_PAGE) { | 1174 if (source.entries_[i].get()->page_type() != INTERSTITIAL_PAGE) { |
1176 entries_.insert(entries_.begin() + insert_index++, | 1175 entries_.insert(entries_.begin() + insert_index++, |
1177 linked_ptr<NavigationEntry>( | 1176 linked_ptr<NavigationEntry>( |
1178 new NavigationEntry(*source.entries_[i]))); | 1177 new NavigationEntry(*source.entries_[i]))); |
1179 } | 1178 } |
1180 } | 1179 } |
1181 } | 1180 } |
OLD | NEW |