| 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 #include "content/browser/tab_contents/navigation_controller_impl.h" | 5 #include "content/browser/tab_contents/navigation_controller_impl.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_number_conversions.h" // Temporary | 9 #include "base/string_number_conversions.h" // Temporary |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "net/base/mime_util.h" | 33 #include "net/base/mime_util.h" |
| 34 #include "net/base/net_util.h" | 34 #include "net/base/net_util.h" |
| 35 #include "webkit/glue/webkit_glue.h" | 35 #include "webkit/glue/webkit_glue.h" |
| 36 | 36 |
| 37 using content::BrowserContext; | 37 using content::BrowserContext; |
| 38 using content::DOMStorageContext; | 38 using content::DOMStorageContext; |
| 39 using content::GlobalRequestID; | 39 using content::GlobalRequestID; |
| 40 using content::NavigationController; | 40 using content::NavigationController; |
| 41 using content::NavigationEntry; | 41 using content::NavigationEntry; |
| 42 using content::NavigationEntryImpl; | 42 using content::NavigationEntryImpl; |
| 43 using content::RenderViewHostImpl; |
| 43 using content::SessionStorageNamespace; | 44 using content::SessionStorageNamespace; |
| 44 using content::SiteInstance; | 45 using content::SiteInstance; |
| 45 using content::UserMetricsAction; | 46 using content::UserMetricsAction; |
| 46 using content::WebContents; | 47 using content::WebContents; |
| 47 | 48 |
| 48 namespace { | 49 namespace { |
| 49 | 50 |
| 50 const int kInvalidateAll = 0xFFFFFFFF; | 51 const int kInvalidateAll = 0xFFFFFFFF; |
| 51 | 52 |
| 52 // Invoked when entries have been pruned, or removed. For example, if the | 53 // Invoked when entries have been pruned, or removed. For example, if the |
| (...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 for (int i = 0; i < max_index; i++) { | 1429 for (int i = 0; i < max_index; i++) { |
| 1429 // When cloning a tab, copy all entries except interstitial pages | 1430 // When cloning a tab, copy all entries except interstitial pages |
| 1430 if (source.entries_[i].get()->GetPageType() != | 1431 if (source.entries_[i].get()->GetPageType() != |
| 1431 content::PAGE_TYPE_INTERSTITIAL) { | 1432 content::PAGE_TYPE_INTERSTITIAL) { |
| 1432 entries_.insert(entries_.begin() + insert_index++, | 1433 entries_.insert(entries_.begin() + insert_index++, |
| 1433 linked_ptr<NavigationEntryImpl>( | 1434 linked_ptr<NavigationEntryImpl>( |
| 1434 new NavigationEntryImpl(*source.entries_[i]))); | 1435 new NavigationEntryImpl(*source.entries_[i]))); |
| 1435 } | 1436 } |
| 1436 } | 1437 } |
| 1437 } | 1438 } |
| OLD | NEW |