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

Side by Side Diff: components/html_viewer/html_frame_tree_manager.h

Issue 1278673002: Add stats collection for telemetry startup.warm.blank_page test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment. Created 5 years, 4 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 | « components/html_viewer/html_frame.cc ('k') | components/html_viewer/html_frame_tree_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_H_
6 #define COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_H_ 6 #define COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "mandoline/tab/public/interfaces/frame_tree.mojom.h" 14 #include "mandoline/tab/public/interfaces/frame_tree.mojom.h"
15 15
16 namespace blink { 16 namespace blink {
17 class WebView; 17 class WebView;
18 } 18 }
19 19
20 namespace mojo { 20 namespace mojo {
21 class ApplicationImpl;
22 class View; 21 class View;
23 } 22 }
24 23
25 namespace html_viewer { 24 namespace html_viewer {
26 25
27 class DocumentResourceWaiter; 26 class DocumentResourceWaiter;
28 class GlobalState; 27 class GlobalState;
29 class HTMLFrame; 28 class HTMLFrame;
30 class HTMLFrameDelegate; 29 class HTMLFrameDelegate;
31 30
32 // HTMLFrameTreeManager is responsible for managing the frames that comprise a 31 // HTMLFrameTreeManager is responsible for managing the frames that comprise a
33 // document. Some of the frames may be remote. HTMLFrameTreeManager updates its 32 // document. Some of the frames may be remote. HTMLFrameTreeManager updates its
34 // state in response to changes from the FrameTreeServer, as well as changes 33 // state in response to changes from the FrameTreeServer, as well as changes
35 // from the underlying frames. The frame tree has at least one local frame 34 // from the underlying frames. The frame tree has at least one local frame
36 // that is backed by a mojo::View. 35 // that is backed by a mojo::View.
37 class HTMLFrameTreeManager { 36 class HTMLFrameTreeManager {
38 public: 37 public:
39 // Creates a new HTMLFrame. The caller owns the return value and must call 38 // Creates a new HTMLFrame. The caller owns the return value and must call
40 // Close() when done. 39 // Close() when done.
41 static HTMLFrame* CreateFrameAndAttachToTree( 40 static HTMLFrame* CreateFrameAndAttachToTree(
42 GlobalState* global_state, 41 GlobalState* global_state,
43 mojo::ApplicationImpl* app,
44 mojo::View* view, 42 mojo::View* view,
45 scoped_ptr<DocumentResourceWaiter> resource_waiter, 43 scoped_ptr<DocumentResourceWaiter> resource_waiter,
46 HTMLFrameDelegate* delegate); 44 HTMLFrameDelegate* delegate);
47 45
48 GlobalState* global_state() { return global_state_; } 46 GlobalState* global_state() { return global_state_; }
49 47
50 blink::WebView* GetWebView(); 48 blink::WebView* GetWebView();
51 49
52 private: 50 private:
53 friend class HTMLFrame; 51 friend class HTMLFrame;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool in_process_on_frame_removed_; 115 bool in_process_on_frame_removed_;
118 116
119 base::WeakPtrFactory<HTMLFrameTreeManager> weak_factory_; 117 base::WeakPtrFactory<HTMLFrameTreeManager> weak_factory_;
120 118
121 DISALLOW_COPY_AND_ASSIGN(HTMLFrameTreeManager); 119 DISALLOW_COPY_AND_ASSIGN(HTMLFrameTreeManager);
122 }; 120 };
123 121
124 } // namespace html_viewer 122 } // namespace html_viewer
125 123
126 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_H_ 124 #endif // COMPONENTS_HTML_VIEWER_HTML_FRAME_TREE_MANAGER_H_
OLDNEW
« no previous file with comments | « components/html_viewer/html_frame.cc ('k') | components/html_viewer/html_frame_tree_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698