OLD | NEW |
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 COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_WEB_CONTENTS_MAIN_FRAME_OBSERVE
R_H_ | 5 #ifndef COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_WEB_CONTENTS_MAIN_FRAME_OBSERVE
R_H_ |
6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_WEB_CONTENTS_MAIN_FRAME_OBSERVE
R_H_ | 6 #define COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_WEB_CONTENTS_MAIN_FRAME_OBSERVE
R_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
9 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
10 #include "content/public/browser/web_contents_user_data.h" | 11 #include "content/public/browser/web_contents_user_data.h" |
11 | 12 |
12 namespace dom_distiller { | 13 namespace dom_distiller { |
13 | 14 |
14 // Tracks whether DocumentLoadedInFrame has been called for the main frame for | 15 // Tracks whether DocumentLoadedInFrame has been called for the main frame for |
15 // the current main frame for the given WebContents. It removes itself as an | 16 // the current main frame for the given WebContents. It removes itself as an |
16 // observer if the WebContents is destroyed or the render process is gone. | 17 // observer if the WebContents is destroyed or the render process is gone. |
17 class WebContentsMainFrameObserver | 18 class WebContentsMainFrameObserver |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // Whether this object has been correctly initialized. This is set as soon as | 50 // Whether this object has been correctly initialized. This is set as soon as |
50 // at least one call to DidNavigateMainFrame has happened. | 51 // at least one call to DidNavigateMainFrame has happened. |
51 bool is_initialized_; | 52 bool is_initialized_; |
52 | 53 |
53 DISALLOW_COPY_AND_ASSIGN(WebContentsMainFrameObserver); | 54 DISALLOW_COPY_AND_ASSIGN(WebContentsMainFrameObserver); |
54 }; | 55 }; |
55 | 56 |
56 } // namespace dom_distiller | 57 } // namespace dom_distiller |
57 | 58 |
58 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_WEB_CONTENTS_MAIN_FRAME_OBSE
RVER_H_ | 59 #endif // COMPONENTS_DOM_DISTILLER_CONTENT_BROWSER_WEB_CONTENTS_MAIN_FRAME_OBSE
RVER_H_ |
OLD | NEW |