OLD | NEW |
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_DOCUMENT_RESOURCE_WAITER_H_ | 5 #ifndef COMPONENTS_HTML_VIEWER_DOCUMENT_RESOURCE_WAITER_H_ |
6 #define COMPONENTS_HTML_VIEWER_DOCUMENT_RESOURCE_WAITER_H_ | 6 #define COMPONENTS_HTML_VIEWER_DOCUMENT_RESOURCE_WAITER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "components/html_viewer/html_frame_tree_manager_observer.h" | 10 #include "components/html_viewer/html_frame_tree_manager_observer.h" |
11 #include "components/mus/public/cpp/window_observer.h" | 11 #include "components/mus/public/cpp/window_observer.h" |
12 #include "components/web_view/public/interfaces/frame.mojom.h" | 12 #include "components/web_view/public/interfaces/frame.mojom.h" |
| 13 #include "mojo/public/cpp/bindings/binding.h" |
13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 14 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | |
15 | 15 |
16 namespace html_viewer { | 16 namespace html_viewer { |
17 | 17 |
18 class HTMLDocument; | 18 class HTMLDocument; |
19 class HTMLFrameTreeManager; | 19 class HTMLFrameTreeManager; |
20 class GlobalState; | 20 class GlobalState; |
21 | 21 |
22 // DocumentResourceWaiter waits for the necessary resources needed to load an | 22 // DocumentResourceWaiter waits for the necessary resources needed to load an |
23 // HTMLDocument. Once ready it calls to HTMLDocument::Load(). Once ready it is | 23 // HTMLDocument. Once ready it calls to HTMLDocument::Load(). Once ready it is |
24 // assumed HTMLDocument will call back for the FrameClient and FrameData. | 24 // assumed HTMLDocument will call back for the FrameClient and FrameData. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 bool waiting_for_change_id_; | 130 bool waiting_for_change_id_; |
131 | 131 |
132 HTMLFrameTreeManager* target_frame_tree_; | 132 HTMLFrameTreeManager* target_frame_tree_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(DocumentResourceWaiter); | 134 DISALLOW_COPY_AND_ASSIGN(DocumentResourceWaiter); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace html_viewer | 137 } // namespace html_viewer |
138 | 138 |
139 #endif // COMPONENTS_HTML_VIEWER_DOCUMENT_RESOURCE_WAITER_H_ | 139 #endif // COMPONENTS_HTML_VIEWER_DOCUMENT_RESOURCE_WAITER_H_ |
OLD | NEW |