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

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

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
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebCompositionUnderline.h" 8 #include "WebCompositionUnderline.h"
9 #include "WebFrame.h" 9 #include "WebFrame.h"
10 #include "WebFrameLoadType.h" 10 #include "WebFrameLoadType.h"
11 #include "WebHistoryItem.h" 11 #include "WebHistoryItem.h"
12 #include "public/platform/WebCachePolicy.h" 12 #include "public/platform/WebCachePolicy.h"
13 #include "public/platform/WebURLError.h" 13 #include "public/platform/WebURLError.h"
14 14
15 namespace base {
16 class SingleThreadTaskRunner;
17 }
18
15 namespace blink { 19 namespace blink {
16 20
17 class WebAutofillClient; 21 class WebAutofillClient;
18 class WebContentSettingsClient; 22 class WebContentSettingsClient;
19 class WebDevToolsAgent; 23 class WebDevToolsAgent;
20 class WebDevToolsAgentClient; 24 class WebDevToolsAgentClient;
21 class WebDoubleSize; 25 class WebDoubleSize;
22 class WebFrameClient; 26 class WebFrameClient;
23 class WebFrameWidget; 27 class WebFrameWidget;
24 class WebRange; 28 class WebRange;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 virtual void copyImageAt(const WebPoint&) = 0; 434 virtual void copyImageAt(const WebPoint&) = 0;
431 435
432 // Save as the image located at a particular point in visual viewport 436 // Save as the image located at a particular point in visual viewport
433 // coordinates. 437 // coordinates.
434 virtual void saveImageAt(const WebPoint&) = 0; 438 virtual void saveImageAt(const WebPoint&) = 0;
435 439
436 // TEMP: Usage count for chrome.loadtimes deprecation. 440 // TEMP: Usage count for chrome.loadtimes deprecation.
437 // This will be removed following the deprecation. 441 // This will be removed following the deprecation.
438 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; 442 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0;
439 443
444 // Task queues --------------------------------------------------------------
445
446 // Returns frame-specific task runner to run tasks of this type on.
447 // They have the same lifetime as the frame.
448 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0;
449 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0;
450 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0;
451
440 protected: 452 protected:
441 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} 453 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
442 454
443 // Inherited from WebFrame, but intentionally hidden: it never makes sense 455 // Inherited from WebFrame, but intentionally hidden: it never makes sense
444 // to call these on a WebLocalFrame. 456 // to call these on a WebLocalFrame.
445 bool isWebLocalFrame() const override = 0; 457 bool isWebLocalFrame() const override = 0;
446 WebLocalFrame* toWebLocalFrame() override = 0; 458 WebLocalFrame* toWebLocalFrame() override = 0;
447 bool isWebRemoteFrame() const override = 0; 459 bool isWebRemoteFrame() const override = 0;
448 WebRemoteFrame* toWebRemoteFrame() override = 0; 460 WebRemoteFrame* toWebRemoteFrame() override = 0;
449 }; 461 };
450 462
451 } // namespace blink 463 } // namespace blink
452 464
453 #endif // WebLocalFrame_h 465 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698