| 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/web_contents/navigation_entry_impl.h" | 5 #include "content/browser/web_contents/navigation_entry_impl.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "content/public/common/content_constants.h" | 9 #include "content/public/common/content_constants.h" |
| 10 #include "content/public/common/url_constants.h" | 10 #include "content/public/common/url_constants.h" |
| 11 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
| 12 #include "ui/base/text/text_elider.h" | 12 #include "ui/base/text/text_elider.h" |
| 13 | 13 |
| 14 using content::SiteInstance; | |
| 15 | |
| 16 // Use this to get a new unique ID for a NavigationEntry during construction. | 14 // Use this to get a new unique ID for a NavigationEntry during construction. |
| 17 // The returned ID is guaranteed to be nonzero (which is the "no ID" indicator). | 15 // The returned ID is guaranteed to be nonzero (which is the "no ID" indicator). |
| 18 static int GetUniqueIDInConstructor() { | 16 static int GetUniqueIDInConstructor() { |
| 19 static int unique_id_counter = 0; | 17 static int unique_id_counter = 0; |
| 20 return ++unique_id_counter; | 18 return ++unique_id_counter; |
| 21 } | 19 } |
| 22 | 20 |
| 23 namespace content { | 21 namespace content { |
| 24 | 22 |
| 25 NavigationEntry* NavigationEntry::Create() { | 23 NavigationEntry* NavigationEntry::Create() { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 265 |
| 268 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { | 266 void NavigationEntryImpl::SetCanLoadLocalResources(bool allow) { |
| 269 can_load_local_resources_ = allow; | 267 can_load_local_resources_ = allow; |
| 270 } | 268 } |
| 271 | 269 |
| 272 bool NavigationEntryImpl::GetCanLoadLocalResources() const { | 270 bool NavigationEntryImpl::GetCanLoadLocalResources() const { |
| 273 return can_load_local_resources_; | 271 return can_load_local_resources_; |
| 274 } | 272 } |
| 275 | 273 |
| 276 } // namespace content | 274 } // namespace content |
| OLD | NEW |