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

Side by Side Diff: headless/public/util/dom_tree_extractor.h

Issue 2473073003: [headless] Refactor headless devtools client API. (Closed)
Patch Set: Address nits Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 HEADLESS_PUBLIC_UTIL_DOM_TREE_EXTRACTOR_H_ 5 #ifndef HEADLESS_PUBLIC_UTIL_DOM_TREE_EXTRACTOR_H_
6 #define HEADLESS_PUBLIC_UTIL_DOM_TREE_EXTRACTOR_H_ 6 #define HEADLESS_PUBLIC_UTIL_DOM_TREE_EXTRACTOR_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "headless/public/domains/css.h" 12 #include "headless/public/devtools/domains/css.h"
13 #include "headless/public/domains/dom.h" 13 #include "headless/public/devtools/domains/dom.h"
14 14
15 namespace headless { 15 namespace headless {
16 class HeadlessDevToolsClient; 16 class HeadlessDevToolsClient;
17 17
18 // A utility class for extracting information from the DOM via DevTools. In 18 // A utility class for extracting information from the DOM via DevTools. In
19 // addition, it also extracts details of bounding boxes and layout text (NB the 19 // addition, it also extracts details of bounding boxes and layout text (NB the
20 // exact layout should not be regarded as stable, it's subject to change without 20 // exact layout should not be regarded as stable, it's subject to change without
21 // notice). 21 // notice).
22 class DomTreeExtractor { 22 class DomTreeExtractor {
23 public: 23 public:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool work_in_progress_; 79 bool work_in_progress_;
80 HeadlessDevToolsClient* devtools_client_; // NOT OWNED 80 HeadlessDevToolsClient* devtools_client_; // NOT OWNED
81 base::WeakPtrFactory<DomTreeExtractor> weak_factory_; 81 base::WeakPtrFactory<DomTreeExtractor> weak_factory_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(DomTreeExtractor); 83 DISALLOW_COPY_AND_ASSIGN(DomTreeExtractor);
84 }; 84 };
85 85
86 } // namespace headless 86 } // namespace headless
87 87
88 #endif // HEADLESS_PUBLIC_UTIL_DOM_TREE_EXTRACTOR_H_ 88 #endif // HEADLESS_PUBLIC_UTIL_DOM_TREE_EXTRACTOR_H_
OLDNEW
« no previous file with comments | « headless/public/internal/value_conversions.h ('k') | headless/public/util/dom_tree_extractor_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698