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

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

Issue 2712773002: Add trace event for detecting main frame in loading metrics. (Closed)
Patch Set: comment Created 3 years, 9 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
« 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 <set> 8 #include <set>
9 #include "WebCompositionUnderline.h" 9 #include "WebCompositionUnderline.h"
10 #include "WebFrame.h" 10 #include "WebFrame.h"
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 495
496 // Returns frame-specific task runner to run tasks of this type on. 496 // Returns frame-specific task runner to run tasks of this type on.
497 // They have the same lifetime as the frame. 497 // They have the same lifetime as the frame.
498 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; 498 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0;
499 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; 499 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0;
500 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; 500 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0;
501 501
502 // Returns the WebInputMethodController associated with this local frame. 502 // Returns the WebInputMethodController associated with this local frame.
503 virtual WebInputMethodController* inputMethodController() const = 0; 503 virtual WebInputMethodController* inputMethodController() const = 0;
504 504
505 // Tracing support ----------------------------------------------------------
506 // Returns the value for the "frame" argument in TRACE_EVENT* calls.
507 // This function is intended to be used in components that do not have
508 // access to the local frame, but still want to trace frame related events.
509 virtual void* frameIdForTracing() const = 0;
ulan 2017/02/22 21:16:37 This is not really nice. I would appreciate better
haraken 2017/02/22 23:56:21 In practice, this will work because Oilpan's compa
510
505 protected: 511 protected:
506 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} 512 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
507 513
508 // Inherited from WebFrame, but intentionally hidden: it never makes sense 514 // Inherited from WebFrame, but intentionally hidden: it never makes sense
509 // to call these on a WebLocalFrame. 515 // to call these on a WebLocalFrame.
510 bool isWebLocalFrame() const override = 0; 516 bool isWebLocalFrame() const override = 0;
511 WebLocalFrame* toWebLocalFrame() override = 0; 517 WebLocalFrame* toWebLocalFrame() override = 0;
512 bool isWebRemoteFrame() const override = 0; 518 bool isWebRemoteFrame() const override = 0;
513 WebRemoteFrame* toWebRemoteFrame() override = 0; 519 WebRemoteFrame* toWebRemoteFrame() override = 0;
514 }; 520 };
515 521
516 } // namespace blink 522 } // namespace blink
517 523
518 #endif // WebLocalFrame_h 524 #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