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

Side by Side Diff: content/browser/tab_contents/navigation_entry.cc

Issue 7104144: Get rid of the following dependencies from content: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
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_entry.h" 5 #include "content/browser/tab_contents/navigation_entry.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 "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/common/chrome_constants.h"
11 #include "content/browser/site_instance.h" 10 #include "content/browser/site_instance.h"
12 #include "content/common/content_constants.h" 11 #include "content/common/content_constants.h"
13 #include "content/common/url_constants.h" 12 #include "content/common/url_constants.h"
14 #include "grit/app_resources.h" 13 #include "grit/app_resources.h"
15 #include "net/base/net_util.h" 14 #include "net/base/net_util.h"
16 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/base/text/text_elider.h" 16 #include "ui/base/text/text_elider.h"
18 17
19 // Use this to get a new unique ID for a NavigationEntry during construction. 18 // Use this to get a new unique ID for a NavigationEntry during construction.
20 // The returned ID is guaranteed to be nonzero (which is the "no ID" indicator). 19 // The returned ID is guaranteed to be nonzero (which is the "no ID" indicator).
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 title = title.substr(slashpos + 1); 101 title = title.substr(slashpos + 1);
103 } 102 }
104 103
105 ui::ElideString(title, content::kMaxTitleChars, &cached_display_title_); 104 ui::ElideString(title, content::kMaxTitleChars, &cached_display_title_);
106 return cached_display_title_; 105 return cached_display_title_;
107 } 106 }
108 107
109 bool NavigationEntry::IsViewSourceMode() const { 108 bool NavigationEntry::IsViewSourceMode() const {
110 return virtual_url_.SchemeIs(chrome::kViewSourceScheme); 109 return virtual_url_.SchemeIs(chrome::kViewSourceScheme);
111 } 110 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/navigation_controller.cc ('k') | content/browser/zygote_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698