Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: WebFrames! Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 #include "platform/network/ResourceRequest.h" 173 #include "platform/network/ResourceRequest.h"
174 #include "platform/scroll/ScrollTypes.h" 174 #include "platform/scroll/ScrollTypes.h"
175 #include "platform/scroll/ScrollbarTheme.h" 175 #include "platform/scroll/ScrollbarTheme.h"
176 #include "platform/weborigin/KURL.h" 176 #include "platform/weborigin/KURL.h"
177 #include "platform/weborigin/SchemeRegistry.h" 177 #include "platform/weborigin/SchemeRegistry.h"
178 #include "platform/weborigin/SecurityPolicy.h" 178 #include "platform/weborigin/SecurityPolicy.h"
179 #include "public/platform/InterfaceProvider.h" 179 #include "public/platform/InterfaceProvider.h"
180 #include "public/platform/WebDoubleSize.h" 180 #include "public/platform/WebDoubleSize.h"
181 #include "public/platform/WebFloatPoint.h" 181 #include "public/platform/WebFloatPoint.h"
182 #include "public/platform/WebFloatRect.h" 182 #include "public/platform/WebFloatRect.h"
183 #include "public/platform/WebFrameScheduler.h"
183 #include "public/platform/WebLayer.h" 184 #include "public/platform/WebLayer.h"
184 #include "public/platform/WebPoint.h" 185 #include "public/platform/WebPoint.h"
185 #include "public/platform/WebRect.h" 186 #include "public/platform/WebRect.h"
186 #include "public/platform/WebSecurityOrigin.h" 187 #include "public/platform/WebSecurityOrigin.h"
187 #include "public/platform/WebSize.h" 188 #include "public/platform/WebSize.h"
188 #include "public/platform/WebSuspendableTask.h" 189 #include "public/platform/WebSuspendableTask.h"
189 #include "public/platform/WebURLError.h" 190 #include "public/platform/WebURLError.h"
190 #include "public/platform/WebVector.h" 191 #include "public/platform/WebVector.h"
191 #include "public/web/WebAutofillClient.h" 192 #include "public/web/WebAutofillClient.h"
192 #include "public/web/WebConsoleMessage.h" 193 #include "public/web/WebConsoleMessage.h"
(...skipping 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2327 } else if (metric == "npnNegotiatedProtocol") { 2328 } else if (metric == "npnNegotiatedProtocol") {
2328 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; 2329 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol;
2329 } else if (metric == "wasAlternateProtocolAvailable") { 2330 } else if (metric == "wasAlternateProtocolAvailable") {
2330 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; 2331 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable;
2331 } else if (metric == "connectionInfo") { 2332 } else if (metric == "connectionInfo") {
2332 feature = UseCounter::ChromeLoadTimesConnectionInfo; 2333 feature = UseCounter::ChromeLoadTimesConnectionInfo;
2333 } 2334 }
2334 UseCounter::count(frame(), feature); 2335 UseCounter::count(frame(), feature);
2335 } 2336 }
2336 2337
2338 void WebLocalFrameImpl::audioStateChanged(bool isAudioPlaying) {
2339 frame()->frameScheduler()->audioStateChanged(isAudioPlaying);
2340 }
2341
2337 } // namespace blink 2342 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698