| 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 #if defined(OS_CHROMEOS) | 7 #if defined(OS_CHROMEOS) |
| 8 // For GdkScreen | 8 // For GdkScreen |
| 9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
| 10 #endif // defined(OS_CHROMEOS) | 10 #endif // defined(OS_CHROMEOS) |
| (...skipping 1965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1976 const webkit_glue::WebApplicationInfo& info) { | 1976 const webkit_glue::WebApplicationInfo& info) { |
| 1977 web_app_info_ = info; | 1977 web_app_info_ = info; |
| 1978 | 1978 |
| 1979 if (delegate()) | 1979 if (delegate()) |
| 1980 delegate()->OnDidGetApplicationInfo(this, page_id); | 1980 delegate()->OnDidGetApplicationInfo(this, page_id); |
| 1981 } | 1981 } |
| 1982 | 1982 |
| 1983 void TabContents::OnPageContents(const GURL& url, | 1983 void TabContents::OnPageContents(const GURL& url, |
| 1984 int renderer_process_id, | 1984 int renderer_process_id, |
| 1985 int32 page_id, | 1985 int32 page_id, |
| 1986 const std::wstring& contents, | 1986 const string16& contents, |
| 1987 const std::string& language) { | 1987 const std::string& language) { |
| 1988 // Don't index any https pages. People generally don't want their bank | 1988 // Don't index any https pages. People generally don't want their bank |
| 1989 // accounts, etc. indexed on their computer, especially since some of these | 1989 // accounts, etc. indexed on their computer, especially since some of these |
| 1990 // things are not marked cachable. | 1990 // things are not marked cachable. |
| 1991 // TODO(brettw) we may want to consider more elaborate heuristics such as | 1991 // TODO(brettw) we may want to consider more elaborate heuristics such as |
| 1992 // the cachability of the page. We may also want to consider subframes (this | 1992 // the cachability of the page. We may also want to consider subframes (this |
| 1993 // test will still index subframes if the subframe is SSL). | 1993 // test will still index subframes if the subframe is SSL). |
| 1994 // TODO(zelidrag) bug chromium-os:2808 - figure out if we want to reenable | 1994 // TODO(zelidrag) bug chromium-os:2808 - figure out if we want to reenable |
| 1995 // content indexing for chromeos in some future releases. | 1995 // content indexing for chromeos in some future releases. |
| 1996 #if !defined(OS_CHROMEOS) | 1996 #if !defined(OS_CHROMEOS) |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3202 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3202 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
| 3203 } | 3203 } |
| 3204 | 3204 |
| 3205 Profile* TabContents::GetProfileForPasswordManager() { | 3205 Profile* TabContents::GetProfileForPasswordManager() { |
| 3206 return profile(); | 3206 return profile(); |
| 3207 } | 3207 } |
| 3208 | 3208 |
| 3209 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3209 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
| 3210 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3210 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
| 3211 } | 3211 } |
| OLD | NEW |