| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/tab_contents/tab_contents.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
| (...skipping 2036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 WideToUTF16Hack(plugin_name)), | 2047 WideToUTF16Hack(plugin_name)), |
| 2048 crash_icon, true)); | 2048 crash_icon, true)); |
| 2049 } | 2049 } |
| 2050 | 2050 |
| 2051 void TabContents::OnCrashedWorker() { | 2051 void TabContents::OnCrashedWorker() { |
| 2052 AddInfoBar(new SimpleAlertInfoBarDelegate( | 2052 AddInfoBar(new SimpleAlertInfoBarDelegate( |
| 2053 this, l10n_util::GetStringUTF16(IDS_WEBWORKER_CRASHED_PROMPT), | 2053 this, l10n_util::GetStringUTF16(IDS_WEBWORKER_CRASHED_PROMPT), |
| 2054 NULL, true)); | 2054 NULL, true)); |
| 2055 } | 2055 } |
| 2056 | 2056 |
| 2057 void TabContents::OnDidGetApplicationInfo( | 2057 void TabContents::OnDidGetApplicationInfo(int32 page_id, |
| 2058 int32 page_id, | 2058 const WebApplicationInfo& info) { |
| 2059 const webkit_glue::WebApplicationInfo& info) { | |
| 2060 web_app_info_ = info; | 2059 web_app_info_ = info; |
| 2061 | 2060 |
| 2062 if (delegate()) | 2061 if (delegate()) |
| 2063 delegate()->OnDidGetApplicationInfo(this, page_id); | 2062 delegate()->OnDidGetApplicationInfo(this, page_id); |
| 2064 } | 2063 } |
| 2065 | 2064 |
| 2066 void TabContents::OnDisabledOutdatedPlugin(const string16& name, | 2065 void TabContents::OnDisabledOutdatedPlugin(const string16& name, |
| 2067 const GURL& update_url) { | 2066 const GURL& update_url) { |
| 2068 new DisabledPluginInfoBar(this, name, update_url); | 2067 new DisabledPluginInfoBar(this, name, update_url); |
| 2069 } | 2068 } |
| (...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3333 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3332 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
| 3334 } | 3333 } |
| 3335 | 3334 |
| 3336 Profile* TabContents::GetProfileForPasswordManager() { | 3335 Profile* TabContents::GetProfileForPasswordManager() { |
| 3337 return profile(); | 3336 return profile(); |
| 3338 } | 3337 } |
| 3339 | 3338 |
| 3340 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3339 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
| 3341 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3340 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
| 3342 } | 3341 } |
| OLD | NEW |