| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/prerender/prerender_render_view_host_observer.h" | 5 #include "chrome/browser/prerender/prerender_render_view_host_observer.h" |
| 6 | 6 |
| 7 #include "chrome/browser/prerender/prerender_contents.h" | 7 #include "chrome/browser/prerender/prerender_contents.h" |
| 8 #include "chrome/common/icon_messages.h" | 8 #include "chrome/common/icon_messages.h" |
| 9 #include "chrome/common/render_messages.h" | 9 #include "chrome/common/render_messages.h" |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 | 51 |
| 52 // The base class declares this as protected so this is just here to make it | 52 // The base class declares this as protected so this is just here to make it |
| 53 // public so it is visible to the caller. | 53 // public so it is visible to the caller. |
| 54 bool PrerenderRenderViewHostObserver::Send(IPC::Message* message) { | 54 bool PrerenderRenderViewHostObserver::Send(IPC::Message* message) { |
| 55 return content::RenderViewHostObserver::Send(message); | 55 return content::RenderViewHostObserver::Send(message); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void PrerenderRenderViewHostObserver::OnUpdateFaviconURL( | 58 void PrerenderRenderViewHostObserver::OnUpdateFaviconURL( |
| 59 int32 page_id, | 59 int32 page_id, |
| 60 const std::vector<FaviconURL>& urls) { | 60 const std::vector<content::FaviconURL>& urls) { |
| 61 prerender_contents_->OnUpdateFaviconURL(page_id, urls); | 61 prerender_contents_->OnUpdateFaviconURL(page_id, urls); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void PrerenderRenderViewHostObserver::OnMaybeCancelPrerenderForHTML5Media() { | 64 void PrerenderRenderViewHostObserver::OnMaybeCancelPrerenderForHTML5Media() { |
| 65 prerender_contents_->Destroy(FINAL_STATUS_HTML5_MEDIA); | 65 prerender_contents_->Destroy(FINAL_STATUS_HTML5_MEDIA); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void PrerenderRenderViewHostObserver::OnCancelPrerenderForPrinting() { | 68 void PrerenderRenderViewHostObserver::OnCancelPrerenderForPrinting() { |
| 69 prerender_contents_->Destroy(FINAL_STATUS_WINDOW_PRINT); | 69 prerender_contents_->Destroy(FINAL_STATUS_WINDOW_PRINT); |
| 70 } | 70 } |
| 71 | 71 |
| 72 } | 72 } |
| OLD | NEW |