OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/web_contents.h" | 5 #include "chrome/browser/web_contents.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
10 #include "chrome/app/locales/locale_settings.h" | 10 #include "chrome/app/locales/locale_settings.h" |
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 if (!entry || !UpdateTitleForEntry(entry, title)) | 782 if (!entry || !UpdateTitleForEntry(entry, title)) |
783 return; | 783 return; |
784 | 784 |
785 // Broadcast notifications when the UI should be updated. | 785 // Broadcast notifications when the UI should be updated. |
786 if (entry == controller()->GetEntryAtOffset(0)) | 786 if (entry == controller()->GetEntryAtOffset(0)) |
787 NotifyNavigationStateChanged(INVALIDATE_TITLE); | 787 NotifyNavigationStateChanged(INVALIDATE_TITLE); |
788 } | 788 } |
789 | 789 |
790 | 790 |
791 void WebContents::UpdateEncoding(RenderViewHost* render_view_host, | 791 void WebContents::UpdateEncoding(RenderViewHost* render_view_host, |
792 const std::wstring& encoding_name) { | 792 const std::wstring& encoding) { |
793 set_encoding(encoding_name); | 793 set_encoding(encoding); |
794 } | 794 } |
795 | 795 |
796 void WebContents::UpdateTargetURL(int32 page_id, const GURL& url) { | 796 void WebContents::UpdateTargetURL(int32 page_id, const GURL& url) { |
797 if (delegate()) | 797 if (delegate()) |
798 delegate()->UpdateTargetURL(this, url); | 798 delegate()->UpdateTargetURL(this, url); |
799 } | 799 } |
800 | 800 |
801 void WebContents::UpdateThumbnail(const GURL& url, | 801 void WebContents::UpdateThumbnail(const GURL& url, |
802 const SkBitmap& bitmap, | 802 const SkBitmap& bitmap, |
803 const ThumbnailScore& score) { | 803 const ThumbnailScore& score) { |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1741 // The favicon url isn't valid. This means there really isn't a favicon, | 1741 // The favicon url isn't valid. This means there really isn't a favicon, |
1742 // or the favicon url wasn't obtained before the load started. This assumes | 1742 // or the favicon url wasn't obtained before the load started. This assumes |
1743 // the later. | 1743 // the later. |
1744 // TODO(sky): Need a way to set the favicon that doesn't involve generating | 1744 // TODO(sky): Need a way to set the favicon that doesn't involve generating |
1745 // its url. | 1745 // its url. |
1746 new_url->SetFavIconURL(TemplateURL::GenerateFaviconURL(params.referrer)); | 1746 new_url->SetFavIconURL(TemplateURL::GenerateFaviconURL(params.referrer)); |
1747 } | 1747 } |
1748 new_url->set_safe_for_autoreplace(true); | 1748 new_url->set_safe_for_autoreplace(true); |
1749 url_model->Add(new_url); | 1749 url_model->Add(new_url); |
1750 } | 1750 } |
OLD | NEW |