| 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 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2096 RenderViewHost* render_view_host, | 2096 RenderViewHost* render_view_host, |
| 2097 bool is_main_frame, | 2097 bool is_main_frame, |
| 2098 const GURL& url) { | 2098 const GURL& url) { |
| 2099 ProvisionalLoadDetails details(is_main_frame, | 2099 ProvisionalLoadDetails details(is_main_frame, |
| 2100 controller_.IsURLInPageNavigation(url), | 2100 controller_.IsURLInPageNavigation(url), |
| 2101 url, std::string(), false); | 2101 url, std::string(), false); |
| 2102 NotificationService::current()->Notify( | 2102 NotificationService::current()->Notify( |
| 2103 NotificationType::FRAME_PROVISIONAL_LOAD_START, | 2103 NotificationType::FRAME_PROVISIONAL_LOAD_START, |
| 2104 Source<NavigationController>(&controller_), | 2104 Source<NavigationController>(&controller_), |
| 2105 Details<ProvisionalLoadDetails>(&details)); | 2105 Details<ProvisionalLoadDetails>(&details)); |
| 2106 if (is_main_frame) | 2106 if (is_main_frame) { |
| 2107 content_settings_delegate_->ClearCookieSpecificContentSettings(); | 2107 content_settings_delegate_->ClearCookieSpecificContentSettings(); |
| 2108 content_settings_delegate_->ClearGeolocationContentSettings(); |
| 2109 } |
| 2108 } | 2110 } |
| 2109 | 2111 |
| 2110 void TabContents::DidStartReceivingResourceResponse( | 2112 void TabContents::DidStartReceivingResourceResponse( |
| 2111 const ResourceRequestDetails& details) { | 2113 const ResourceRequestDetails& details) { |
| 2112 NotificationService::current()->Notify( | 2114 NotificationService::current()->Notify( |
| 2113 NotificationType::RESOURCE_RESPONSE_STARTED, | 2115 NotificationType::RESOURCE_RESPONSE_STARTED, |
| 2114 Source<NavigationController>(&controller()), | 2116 Source<NavigationController>(&controller()), |
| 2115 Details<const ResourceRequestDetails>(&details)); | 2117 Details<const ResourceRequestDetails>(&details)); |
| 2116 } | 2118 } |
| 2117 | 2119 |
| (...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3242 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3244 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
| 3243 } | 3245 } |
| 3244 | 3246 |
| 3245 Profile* TabContents::GetProfileForPasswordManager() { | 3247 Profile* TabContents::GetProfileForPasswordManager() { |
| 3246 return profile(); | 3248 return profile(); |
| 3247 } | 3249 } |
| 3248 | 3250 |
| 3249 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3251 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
| 3250 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3252 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
| 3251 } | 3253 } |
| OLD | NEW |