Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_UKM_DEBUG_PAGE_REQUEST_JOB_H_ | |
| 6 #define COMPONENTS_UKM_DEBUG_PAGE_REQUEST_JOB_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/callback.h" | |
| 11 #include "base/macros.h" | |
| 12 #include "content/public/browser/url_data_source.h" | |
| 13 | |
| 14 namespace ukm { | |
| 15 class UkmService; | |
|
Alexei Svitkine (slow)
2017/05/05 16:45:05
Nit: Add an empty line before this.
Steven Holte
2017/05/05 18:16:43
Done.
| |
| 16 | |
| 17 namespace debug { | |
| 18 | |
| 19 class DebugPage : public content::URLDataSource { | |
|
Alexei Svitkine (slow)
2017/05/05 16:45:05
Add a comment.
Steven Holte
2017/05/05 18:16:43
Done.
| |
| 20 public: | |
| 21 typedef base::Callback<UkmService*()> ServiceGetter; | |
| 22 | |
| 23 DebugPage(ServiceGetter service_getter); | |
|
Alexei Svitkine (slow)
2017/05/05 16:45:05
Nit: explicit
Steven Holte
2017/05/05 18:16:43
Done.
| |
| 24 | |
| 25 // content::URLDataSource: | |
| 26 std::string GetSource() const override; | |
| 27 std::string GetMimeType(const std::string& path) const override; | |
| 28 void StartDataRequest( | |
| 29 const std::string& path, | |
| 30 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, | |
| 31 const content::URLDataSource::GotDataCallback& callback) override; | |
| 32 bool AllowCaching() const override; | |
| 33 | |
| 34 private: | |
| 35 ~DebugPage() override; | |
| 36 | |
| 37 ServiceGetter service_getter_; | |
| 38 | |
| 39 DISALLOW_IMPLICIT_CONSTRUCTORS(DebugPage); | |
| 40 }; | |
| 41 | |
| 42 } // namespace debug | |
| 43 } // namespace ukm | |
| 44 | |
| 45 #endif // COMPONENTS_UKM_DEBUG_PAGE_REQUEST_JOB_H_ | |
| OLD | NEW |