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/renderer/chrome_content_renderer_client.h" | 5 #include "chrome/renderer/chrome_content_renderer_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 const GURL& first_party_for_cookies, | 712 const GURL& first_party_for_cookies, |
713 const std::string& value) { | 713 const std::string& value) { |
714 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame)) { | 714 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChromeFrame)) { |
715 sender->Send(new ChromeViewHostMsg_SetCookie( | 715 sender->Send(new ChromeViewHostMsg_SetCookie( |
716 MSG_ROUTING_NONE, url, first_party_for_cookies, value)); | 716 MSG_ROUTING_NONE, url, first_party_for_cookies, value)); |
717 return true; | 717 return true; |
718 } | 718 } |
719 return false; | 719 return false; |
720 } | 720 } |
721 | 721 |
722 bool ChromeContentRendererClient::IsProtocolSupportedForMedia( | |
723 const GURL& url) { | |
724 return url.SchemeIs(chrome::kExtensionScheme); | |
725 } | |
726 | |
727 void ChromeContentRendererClient::SetExtensionDispatcher( | 722 void ChromeContentRendererClient::SetExtensionDispatcher( |
728 ExtensionDispatcher* extension_dispatcher) { | 723 ExtensionDispatcher* extension_dispatcher) { |
729 extension_dispatcher_.reset(extension_dispatcher); | 724 extension_dispatcher_.reset(extension_dispatcher); |
730 } | 725 } |
731 | 726 |
732 const Extension* ChromeContentRendererClient::GetNonBookmarkAppExtension( | 727 const Extension* ChromeContentRendererClient::GetNonBookmarkAppExtension( |
733 const ExtensionSet* extensions, const GURL& url) { | 728 const ExtensionSet* extensions, const GURL& url) { |
734 // Exclude bookmark apps, which do not use the app process model. | 729 // Exclude bookmark apps, which do not use the app process model. |
735 const Extension* extension = extensions->GetByURL(url); | 730 const Extension* extension = extensions->GetByURL(url); |
736 if (extension && extension->from_bookmark()) | 731 if (extension && extension->from_bookmark()) |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { | 815 bool ChromeContentRendererClient::IsOtherExtensionWithWebRequestInstalled() { |
821 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); | 816 return extension_dispatcher_->IsOtherExtensionWithWebRequestInstalled(); |
822 } | 817 } |
823 | 818 |
824 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( | 819 void ChromeContentRendererClient::RegisterPPAPIInterfaceFactories( |
825 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { | 820 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) { |
826 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); | 821 factory_manager->RegisterFactory(ChromePPAPIInterfaceFactory); |
827 } | 822 } |
828 | 823 |
829 } // namespace chrome | 824 } // namespace chrome |
OLD | NEW |