| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 2  * Copyright (C) 2012 Google Inc. All rights reserved. | 
| 3  * Copyright (C) 2013 Apple Inc. All rights reserved. | 3  * Copyright (C) 2013 Apple Inc. All rights reserved. | 
| 4  * | 4  * | 
| 5  * Redistribution and use in source and binary forms, with or without | 5  * Redistribution and use in source and binary forms, with or without | 
| 6  * modification, are permitted provided that the following conditions | 6  * modification, are permitted provided that the following conditions | 
| 7  * are met: | 7  * are met: | 
| 8  * | 8  * | 
| 9  * 1.  Redistributions of source code must retain the above copyright | 9  * 1.  Redistributions of source code must retain the above copyright | 
| 10  *     notice, this list of conditions and the following disclaimer. | 10  *     notice, this list of conditions and the following disclaimer. | 
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 147 #include "platform/weborigin/SchemeRegistry.h" | 147 #include "platform/weborigin/SchemeRegistry.h" | 
| 148 #include "platform/wtf/Optional.h" | 148 #include "platform/wtf/Optional.h" | 
| 149 #include "platform/wtf/PtrUtil.h" | 149 #include "platform/wtf/PtrUtil.h" | 
| 150 #include "platform/wtf/dtoa.h" | 150 #include "platform/wtf/dtoa.h" | 
| 151 #include "platform/wtf/text/StringBuffer.h" | 151 #include "platform/wtf/text/StringBuffer.h" | 
| 152 #include "public/platform/Platform.h" | 152 #include "public/platform/Platform.h" | 
| 153 #include "public/platform/WebConnectionType.h" | 153 #include "public/platform/WebConnectionType.h" | 
| 154 #include "public/platform/WebGraphicsContext3DProvider.h" | 154 #include "public/platform/WebGraphicsContext3DProvider.h" | 
| 155 #include "public/platform/WebLayer.h" | 155 #include "public/platform/WebLayer.h" | 
| 156 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h
      " | 156 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h
      " | 
|  | 157 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h" | 
| 157 #include "v8/include/v8.h" | 158 #include "v8/include/v8.h" | 
| 158 | 159 | 
| 159 namespace blink { | 160 namespace blink { | 
| 160 | 161 | 
| 161 namespace { | 162 namespace { | 
| 162 | 163 | 
| 163 class UseCounterObserverImpl final : public UseCounter::Observer { | 164 class UseCounterObserverImpl final : public UseCounter::Observer { | 
| 164   WTF_MAKE_NONCOPYABLE(UseCounterObserverImpl); | 165   WTF_MAKE_NONCOPYABLE(UseCounterObserverImpl); | 
| 165 | 166 | 
| 166  public: | 167  public: | 
| (...skipping 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2320 | 2321 | 
| 2321 String Internals::effectivePreload(HTMLMediaElement* media_element) { | 2322 String Internals::effectivePreload(HTMLMediaElement* media_element) { | 
| 2322   DCHECK(media_element); | 2323   DCHECK(media_element); | 
| 2323   return media_element->EffectivePreload(); | 2324   return media_element->EffectivePreload(); | 
| 2324 } | 2325 } | 
| 2325 | 2326 | 
| 2326 void Internals::mediaPlayerRemoteRouteAvailabilityChanged( | 2327 void Internals::mediaPlayerRemoteRouteAvailabilityChanged( | 
| 2327     HTMLMediaElement* media_element, | 2328     HTMLMediaElement* media_element, | 
| 2328     bool available) { | 2329     bool available) { | 
| 2329   DCHECK(media_element); | 2330   DCHECK(media_element); | 
| 2330   media_element->RemoteRouteAvailabilityChanged( | 2331   DCHECK(media_element->remote_playback_client_); | 
|  | 2332   media_element->remote_playback_client_->AvailabilityChanged( | 
| 2331       available ? WebRemotePlaybackAvailability::kDeviceAvailable | 2333       available ? WebRemotePlaybackAvailability::kDeviceAvailable | 
| 2332                 : WebRemotePlaybackAvailability::kSourceNotSupported); | 2334                 : WebRemotePlaybackAvailability::kSourceNotSupported); | 
| 2333 } | 2335 } | 
| 2334 | 2336 | 
| 2335 void Internals::mediaPlayerPlayingRemotelyChanged( | 2337 void Internals::mediaPlayerPlayingRemotelyChanged( | 
| 2336     HTMLMediaElement* media_element, | 2338     HTMLMediaElement* media_element, | 
| 2337     bool remote) { | 2339     bool remote) { | 
| 2338   DCHECK(media_element); | 2340   DCHECK(media_element); | 
| 2339   if (remote) | 2341   if (remote) | 
| 2340     media_element->ConnectedToRemoteDevice(); | 2342     media_element->ConnectedToRemoteDevice(); | 
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3293 | 3295 | 
| 3294 void Internals::crash() { | 3296 void Internals::crash() { | 
| 3295   CHECK(false) << "Intentional crash"; | 3297   CHECK(false) << "Intentional crash"; | 
| 3296 } | 3298 } | 
| 3297 | 3299 | 
| 3298 void Internals::setIsLowEndDevice(bool is_low_end_device) { | 3300 void Internals::setIsLowEndDevice(bool is_low_end_device) { | 
| 3299   MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); | 3301   MemoryCoordinator::SetIsLowEndDeviceForTesting(is_low_end_device); | 
| 3300 } | 3302 } | 
| 3301 | 3303 | 
| 3302 }  // namespace blink | 3304 }  // namespace blink | 
| OLD | NEW | 
|---|