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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 SpellCheckReplacer replacer(spellcheck_.get()); | 1415 SpellCheckReplacer replacer(spellcheck_.get()); |
1416 content::RenderView::ForEach(&replacer); | 1416 content::RenderView::ForEach(&replacer); |
1417 if (thread) | 1417 if (thread) |
1418 thread->AddObserver(spellcheck_.get()); | 1418 thread->AddObserver(spellcheck_.get()); |
1419 } | 1419 } |
1420 #endif | 1420 #endif |
1421 | 1421 |
1422 // static | 1422 // static |
1423 bool ChromeContentRendererClient::WasWebRequestUsedBySomeExtensions() { | 1423 bool ChromeContentRendererClient::WasWebRequestUsedBySomeExtensions() { |
1424 #if defined(ENABLE_EXTENSIONS) | 1424 #if defined(ENABLE_EXTENSIONS) |
1425 return g_current_client->extension_dispatcher_delegate_ | 1425 return g_current_client->extension_dispatcher_ |
1426 ->WasWebRequestUsedBySomeExtensions(); | 1426 ->WasWebRequestUsedBySomeExtensions(); |
1427 #else | 1427 #else |
1428 return false; | 1428 return false; |
1429 #endif | 1429 #endif |
1430 } | 1430 } |
1431 | 1431 |
1432 const void* ChromeContentRendererClient::CreatePPAPIInterface( | 1432 const void* ChromeContentRendererClient::CreatePPAPIInterface( |
1433 const std::string& interface_name) { | 1433 const std::string& interface_name) { |
1434 #if defined(ENABLE_PLUGINS) | 1434 #if defined(ENABLE_PLUGINS) |
1435 #if !defined(DISABLE_NACL) | 1435 #if !defined(DISABLE_NACL) |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 content::BrowserPluginDelegate* | 1570 content::BrowserPluginDelegate* |
1571 ChromeContentRendererClient::CreateBrowserPluginDelegate( | 1571 ChromeContentRendererClient::CreateBrowserPluginDelegate( |
1572 content::RenderFrame* render_frame, | 1572 content::RenderFrame* render_frame, |
1573 const std::string& mime_type) { | 1573 const std::string& mime_type) { |
1574 #if defined(ENABLE_EXTENSIONS) | 1574 #if defined(ENABLE_EXTENSIONS) |
1575 return new extensions::GuestViewContainer(render_frame, mime_type); | 1575 return new extensions::GuestViewContainer(render_frame, mime_type); |
1576 #else | 1576 #else |
1577 return NULL; | 1577 return NULL; |
1578 #endif | 1578 #endif |
1579 } | 1579 } |
OLD | NEW |