| 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 "content/renderer/renderer_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 : public SimpleWebMimeRegistryImpl { | 160 : public SimpleWebMimeRegistryImpl { |
| 161 public: | 161 public: |
| 162 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType( | 162 virtual blink::WebMimeRegistry::SupportsType supportsMediaMIMEType( |
| 163 const blink::WebString& mime_type, | 163 const blink::WebString& mime_type, |
| 164 const blink::WebString& codecs, | 164 const blink::WebString& codecs, |
| 165 const blink::WebString& key_system); | 165 const blink::WebString& key_system); |
| 166 virtual bool supportsMediaSourceMIMEType(const blink::WebString& mime_type, | 166 virtual bool supportsMediaSourceMIMEType(const blink::WebString& mime_type, |
| 167 const blink::WebString& codecs); | 167 const blink::WebString& codecs); |
| 168 virtual bool supportsEncryptedMediaMIMEType(const WebString& key_system, | 168 virtual bool supportsEncryptedMediaMIMEType(const WebString& key_system, |
| 169 const WebString& mime_type, | 169 const WebString& mime_type, |
| 170 const WebString& codecs) OVERRIDE; | 170 const WebString& codecs) override; |
| 171 virtual blink::WebString mimeTypeForExtension( | 171 virtual blink::WebString mimeTypeForExtension( |
| 172 const blink::WebString& file_extension); | 172 const blink::WebString& file_extension); |
| 173 virtual blink::WebString mimeTypeFromFile( | 173 virtual blink::WebString mimeTypeFromFile( |
| 174 const blink::WebString& file_path); | 174 const blink::WebString& file_path); |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 class RendererBlinkPlatformImpl::FileUtilities : public WebFileUtilitiesImpl { | 177 class RendererBlinkPlatformImpl::FileUtilities : public WebFileUtilitiesImpl { |
| 178 public: | 178 public: |
| 179 explicit FileUtilities(ThreadSafeSender* sender) | 179 explicit FileUtilities(ThreadSafeSender* sender) |
| 180 : thread_safe_sender_(sender) {} | 180 : thread_safe_sender_(sender) {} |
| (...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( | 1171 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( |
| 1172 const blink::WebBatteryStatus& status) { | 1172 const blink::WebBatteryStatus& status) { |
| 1173 PlatformEventObserverBase* observer = | 1173 PlatformEventObserverBase* observer = |
| 1174 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); | 1174 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); |
| 1175 if (!observer) | 1175 if (!observer) |
| 1176 return; | 1176 return; |
| 1177 observer->SendFakeDataForTesting((void*)&status); | 1177 observer->SendFakeDataForTesting((void*)&status); |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 } // namespace content | 1180 } // namespace content |
| OLD | NEW |