| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/chrome_render_frame_observer.h" | 5 #include "chrome/renderer/chrome_render_frame_observer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <limits> | 10 #include <limits> |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 thumbnail_data = std::string(data.begin(), data.end()); | 213 thumbnail_data = std::string(data.begin(), data.end()); |
| 214 } | 214 } |
| 215 | 215 |
| 216 Send(new ChromeViewHostMsg_RequestThumbnailForContextNode_ACK( | 216 Send(new ChromeViewHostMsg_RequestThumbnailForContextNode_ACK( |
| 217 routing_id(), thumbnail_data, original_size, callback_id)); | 217 routing_id(), thumbnail_data, original_size, callback_id)); |
| 218 } | 218 } |
| 219 | 219 |
| 220 void ChromeRenderFrameObserver::OnPrintNodeUnderContextMenu() { | 220 void ChromeRenderFrameObserver::OnPrintNodeUnderContextMenu() { |
| 221 #if defined(ENABLE_PRINTING) | 221 #if defined(ENABLE_PRINTING) |
| 222 printing::PrintWebViewHelper* helper = | 222 printing::PrintWebViewHelper* helper = |
| 223 printing::PrintWebViewHelper::Get(render_frame()->GetRenderView()); | 223 printing::PrintWebViewHelper::Get(render_frame()); |
| 224 if (helper) | 224 if (helper) |
| 225 helper->PrintNode(render_frame()->GetWebFrame()->contextMenuNode()); | 225 helper->PrintNode(render_frame()->GetWebFrame()->contextMenuNode()); |
| 226 #endif | 226 #endif |
| 227 } | 227 } |
| 228 | 228 |
| 229 void ChromeRenderFrameObserver::OnSetClientSidePhishingDetection( | 229 void ChromeRenderFrameObserver::OnSetClientSidePhishingDetection( |
| 230 bool enable_phishing_detection) { | 230 bool enable_phishing_detection) { |
| 231 #if defined(SAFE_BROWSING_CSD) | 231 #if defined(SAFE_BROWSING_CSD) |
| 232 phishing_classifier_ = | 232 phishing_classifier_ = |
| 233 enable_phishing_detection | 233 enable_phishing_detection |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 CapturePageText(FINAL_CAPTURE); | 337 CapturePageText(FINAL_CAPTURE); |
| 338 break; | 338 break; |
| 339 default: | 339 default: |
| 340 break; | 340 break; |
| 341 } | 341 } |
| 342 } | 342 } |
| 343 | 343 |
| 344 void ChromeRenderFrameObserver::OnDestruct() { | 344 void ChromeRenderFrameObserver::OnDestruct() { |
| 345 delete this; | 345 delete this; |
| 346 } | 346 } |
| OLD | NEW |