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/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1929 void RenderViewHost::OnInstantSupportDetermined(int32 page_id, bool result) { | 1929 void RenderViewHost::OnInstantSupportDetermined(int32 page_id, bool result) { |
1930 RenderViewHostDelegate::BrowserIntegration* integration_delegate = | 1930 RenderViewHostDelegate::BrowserIntegration* integration_delegate = |
1931 delegate_->GetBrowserIntegrationDelegate(); | 1931 delegate_->GetBrowserIntegrationDelegate(); |
1932 if (!integration_delegate) | 1932 if (!integration_delegate) |
1933 return; | 1933 return; |
1934 integration_delegate->OnInstantSupportDetermined(page_id, result); | 1934 integration_delegate->OnInstantSupportDetermined(page_id, result); |
1935 } | 1935 } |
1936 | 1936 |
1937 void RenderViewHost::OnDetectedPhishingSite(const GURL& phishing_url, | 1937 void RenderViewHost::OnDetectedPhishingSite(const GURL& phishing_url, |
1938 double phishing_score) { | 1938 double phishing_score) { |
1939 // TODO(noelutz): send an HTTP request to the client-side detection frontends | 1939 delegate_->DetectedPhishingSite(phishing_url, phishing_score); |
1940 // to confirm that the URL is really phishing. | |
1941 } | 1940 } |
1942 | 1941 |
1943 void RenderViewHost::OnScriptEvalResponse(int id, const ListValue& result) { | 1942 void RenderViewHost::OnScriptEvalResponse(int id, const ListValue& result) { |
1944 Value* result_value; | 1943 Value* result_value; |
1945 result.Get(0, &result_value); | 1944 result.Get(0, &result_value); |
1946 std::pair<int, Value*> details(id, result_value); | 1945 std::pair<int, Value*> details(id, result_value); |
1947 NotificationService::current()->Notify( | 1946 NotificationService::current()->Notify( |
1948 NotificationType::EXECUTE_JAVASCRIPT_RESULT, | 1947 NotificationType::EXECUTE_JAVASCRIPT_RESULT, |
1949 Source<RenderViewHost>(this), | 1948 Source<RenderViewHost>(this), |
1950 Details<std::pair<int, Value*> >(&details)); | 1949 Details<std::pair<int, Value*> >(&details)); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2010 if (printer_query.get()) { | 2009 if (printer_query.get()) { |
2011 BrowserThread::PostTask( | 2010 BrowserThread::PostTask( |
2012 BrowserThread::IO, FROM_HERE, | 2011 BrowserThread::IO, FROM_HERE, |
2013 NewRunnableMethod(printer_query.get(), | 2012 NewRunnableMethod(printer_query.get(), |
2014 &printing::PrinterQuery::StopWorker)); | 2013 &printing::PrinterQuery::StopWorker)); |
2015 } | 2014 } |
2016 | 2015 |
2017 // Send the printingDone msg for now. | 2016 // Send the printingDone msg for now. |
2018 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); | 2017 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); |
2019 } | 2018 } |
OLD | NEW |