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

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

Issue 2553173003: Move WebMediaPlayer to frame loading queue. (Closed)
Patch Set: Expose task runners in WebLocalFrame Created 4 years 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 #include "platform/scroll/ScrollbarTheme.h" 175 #include "platform/scroll/ScrollbarTheme.h"
176 #include "platform/tracing/TraceEvent.h" 176 #include "platform/tracing/TraceEvent.h"
177 #include "platform/weborigin/KURL.h" 177 #include "platform/weborigin/KURL.h"
178 #include "platform/weborigin/SchemeRegistry.h" 178 #include "platform/weborigin/SchemeRegistry.h"
179 #include "platform/weborigin/SecurityPolicy.h" 179 #include "platform/weborigin/SecurityPolicy.h"
180 #include "public/platform/InterfaceProvider.h" 180 #include "public/platform/InterfaceProvider.h"
181 #include "public/platform/InterfaceRegistry.h" 181 #include "public/platform/InterfaceRegistry.h"
182 #include "public/platform/WebDoubleSize.h" 182 #include "public/platform/WebDoubleSize.h"
183 #include "public/platform/WebFloatPoint.h" 183 #include "public/platform/WebFloatPoint.h"
184 #include "public/platform/WebFloatRect.h" 184 #include "public/platform/WebFloatRect.h"
185 #include "public/platform/WebFrameScheduler.h"
185 #include "public/platform/WebLayer.h" 186 #include "public/platform/WebLayer.h"
186 #include "public/platform/WebPoint.h" 187 #include "public/platform/WebPoint.h"
187 #include "public/platform/WebRect.h" 188 #include "public/platform/WebRect.h"
188 #include "public/platform/WebSecurityOrigin.h" 189 #include "public/platform/WebSecurityOrigin.h"
189 #include "public/platform/WebSize.h" 190 #include "public/platform/WebSize.h"
190 #include "public/platform/WebURLError.h" 191 #include "public/platform/WebURLError.h"
191 #include "public/platform/WebVector.h" 192 #include "public/platform/WebVector.h"
192 #include "public/web/WebAssociatedURLLoaderOptions.h" 193 #include "public/web/WebAssociatedURLLoaderOptions.h"
193 #include "public/web/WebAutofillClient.h" 194 #include "public/web/WebAutofillClient.h"
194 #include "public/web/WebConsoleMessage.h" 195 #include "public/web/WebConsoleMessage.h"
(...skipping 2135 matching lines...) Expand 10 before | Expand all | Expand 10 after
2330 } else if (metric == "npnNegotiatedProtocol") { 2331 } else if (metric == "npnNegotiatedProtocol") {
2331 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol; 2332 feature = UseCounter::ChromeLoadTimesNpnNegotiatedProtocol;
2332 } else if (metric == "wasAlternateProtocolAvailable") { 2333 } else if (metric == "wasAlternateProtocolAvailable") {
2333 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable; 2334 feature = UseCounter::ChromeLoadTimesWasAlternateProtocolAvailable;
2334 } else if (metric == "connectionInfo") { 2335 } else if (metric == "connectionInfo") {
2335 feature = UseCounter::ChromeLoadTimesConnectionInfo; 2336 feature = UseCounter::ChromeLoadTimesConnectionInfo;
2336 } 2337 }
2337 UseCounter::count(frame(), feature); 2338 UseCounter::count(frame(), feature);
2338 } 2339 }
2339 2340
2341 base::SingleThreadTaskRunner* WebLocalFrameImpl::timerTaskRunner() {
2342 return frame()
2343 ->frameScheduler()
2344 ->timerTaskRunner()
2345 ->toSingleThreadTaskRunner();
2346 }
2347
2348 base::SingleThreadTaskRunner* WebLocalFrameImpl::loadingTaskRunner() {
2349 return frame()
2350 ->frameScheduler()
2351 ->loadingTaskRunner()
2352 ->toSingleThreadTaskRunner();
2353 }
2354
2355 base::SingleThreadTaskRunner* WebLocalFrameImpl::unthrottledTaskRunner() {
2356 return frame()
2357 ->frameScheduler()
2358 ->unthrottledTaskRunner()
2359 ->toSingleThreadTaskRunner();
2360 }
2361
2340 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { 2362 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const {
2341 return m_inputMethodController.get(); 2363 return m_inputMethodController.get();
2342 } 2364 }
2343 2365
2344 } // namespace blink 2366 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/public/web/WebLocalFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698