OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/crash_logging.h" | 8 #include "base/debug/crash_logging.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
(...skipping 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1632 if (mime_type == content::kBrowserPluginMimeType) { | 1632 if (mime_type == content::kBrowserPluginMimeType) { |
1633 return new extensions::ExtensionsGuestViewContainer(render_frame); | 1633 return new extensions::ExtensionsGuestViewContainer(render_frame); |
1634 } else { | 1634 } else { |
1635 return new extensions::MimeHandlerViewContainer( | 1635 return new extensions::MimeHandlerViewContainer( |
1636 render_frame, mime_type, original_url); | 1636 render_frame, mime_type, original_url); |
1637 } | 1637 } |
1638 #else | 1638 #else |
1639 return NULL; | 1639 return NULL; |
1640 #endif | 1640 #endif |
1641 } | 1641 } |
| 1642 |
| 1643 void ChromeContentRendererClient::RecordRappor(const std::string& metric, |
| 1644 const std::string& sample) { |
| 1645 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRappor(metric, sample)); |
| 1646 } |
| 1647 |
| 1648 void ChromeContentRendererClient::RecordRapporURL(const std::string& metric, |
| 1649 const GURL& url) { |
| 1650 RenderThread::Get()->Send(new ChromeViewHostMsg_RecordRapporURL(metric, url)); |
| 1651 } |
OLD | NEW |