| 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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 | 1173 |
| 1174 // NOTE: For now we're doing the safest thing, and sending out notification | 1174 // NOTE: For now we're doing the safest thing, and sending out notification |
| 1175 // when done loading. This currently isn't an issue as the favicon is only | 1175 // when done loading. This currently isn't an issue as the favicon is only |
| 1176 // displayed when done loading. Ideally we would send notification when | 1176 // displayed when done loading. Ideally we would send notification when |
| 1177 // finished parsing the head, but webkit doesn't support that yet. | 1177 // finished parsing the head, but webkit doesn't support that yet. |
| 1178 // The feed discovery code would also benefit from access to the head. | 1178 // The feed discovery code would also benefit from access to the head. |
| 1179 GURL favicon_url(webview->GetMainFrame()->GetFavIconURL()); | 1179 GURL favicon_url(webview->GetMainFrame()->GetFavIconURL()); |
| 1180 if (!favicon_url.is_empty()) | 1180 if (!favicon_url.is_empty()) |
| 1181 Send(new ViewHostMsg_UpdateFavIconURL(routing_id_, page_id_, favicon_url)); | 1181 Send(new ViewHostMsg_UpdateFavIconURL(routing_id_, page_id_, favicon_url)); |
| 1182 | 1182 |
| 1183 // Update the list of available feeds. | |
| 1184 UpdateFeedList(webview->GetMainFrame()->GetFeedList()); | |
| 1185 | |
| 1186 AddGURLSearchProvider(webview->GetMainFrame()->GetOSDDURL(), | 1183 AddGURLSearchProvider(webview->GetMainFrame()->GetOSDDURL(), |
| 1187 true); // autodetected | 1184 true); // autodetected |
| 1188 | 1185 |
| 1189 Send(new ViewHostMsg_DidStopLoading(routing_id_, page_id_)); | 1186 Send(new ViewHostMsg_DidStopLoading(routing_id_, page_id_)); |
| 1190 | 1187 |
| 1191 MessageLoop::current()->PostDelayedTask(FROM_HERE, | 1188 MessageLoop::current()->PostDelayedTask(FROM_HERE, |
| 1192 method_factory_.NewRunnableMethod(&RenderView::CapturePageInfo, page_id_, | 1189 method_factory_.NewRunnableMethod(&RenderView::CapturePageInfo, page_id_, |
| 1193 false), | 1190 false), |
| 1194 kDelayForCaptureMs); | 1191 kDelayForCaptureMs); |
| 1195 | 1192 |
| (...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3135 "Renderer.Other.StartToFinishDoc", start_to_finish_doc); | 3132 "Renderer.Other.StartToFinishDoc", start_to_finish_doc); |
| 3136 UMA_HISTOGRAM_TIMES( | 3133 UMA_HISTOGRAM_TIMES( |
| 3137 "Renderer.Other.FinishDocToFinish", finish_doc_to_finish); | 3134 "Renderer.Other.FinishDocToFinish", finish_doc_to_finish); |
| 3138 UMA_HISTOGRAM_TIMES( | 3135 UMA_HISTOGRAM_TIMES( |
| 3139 "Renderer.Other.RequestToFinish", request_to_finish); | 3136 "Renderer.Other.RequestToFinish", request_to_finish); |
| 3140 UMA_HISTOGRAM_TIMES( | 3137 UMA_HISTOGRAM_TIMES( |
| 3141 "Renderer.Other.StartToFinish", start_to_finish); | 3138 "Renderer.Other.StartToFinish", start_to_finish); |
| 3142 break; | 3139 break; |
| 3143 } | 3140 } |
| 3144 } | 3141 } |
| OLD | NEW |