OLD | NEW |
1 // This file is generated | 1 // This file is generated |
2 | 2 |
3 // Copyright 2016 The Chromium Authors. All rights reserved. | 3 // Copyright 2016 The Chromium Authors. All rights reserved. |
4 // Use of this source code is governed by a BSD-style license that can be | 4 // Use of this source code is governed by a BSD-style license that can be |
5 // found in the LICENSE file. | 5 // found in the LICENSE file. |
6 | 6 |
7 #include "headless/public/devtools/domains/{{domain.domain | camelcase_to_hacker
_style}}.h" | 7 #include "headless/public/devtools/domains/{{domain.domain | camelcase_to_hacker
_style}}.h" |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "headless/public/util/error_reporter.h" |
10 | 11 |
11 namespace headless { | 12 namespace headless { |
12 | 13 |
13 namespace {{domain.domain | camelcase_to_hacker_style}} { | 14 namespace {{domain.domain | camelcase_to_hacker_style}} { |
14 | 15 |
15 ExperimentalDomain* Domain::GetExperimental() { | 16 ExperimentalDomain* Domain::GetExperimental() { |
16 return static_cast<ExperimentalDomain*>(this); | 17 return static_cast<ExperimentalDomain*>(this); |
17 } | 18 } |
18 | 19 |
19 {% if "events" in domain %} | 20 {% if "events" in domain %} |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 } | 147 } |
147 | 148 |
148 void ExperimentalDomain::RemoveObserver(ExperimentalObserver* observer) { | 149 void ExperimentalDomain::RemoveObserver(ExperimentalObserver* observer) { |
149 observers_.RemoveObserver(observer); | 150 observers_.RemoveObserver(observer); |
150 } | 151 } |
151 {% endif %} | 152 {% endif %} |
152 | 153 |
153 } // namespace {{domain.domain | camelcase_to_hacker_style}} | 154 } // namespace {{domain.domain | camelcase_to_hacker_style}} |
154 | 155 |
155 } // namespace headless | 156 } // namespace headless |
OLD | NEW |