OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_RAPPOR_RECORDER_IMPL_H_ |
| 6 #define CHROME_BROWSER_RAPPOR_RECORDER_IMPL_H_ |
| 7 |
| 8 #include "chrome/common/rappor_recorder.mojom.h" |
| 9 |
| 10 class GURL; |
| 11 |
| 12 class RapporRecorderImpl : public mojom::RapporRecorder { |
| 13 public: |
| 14 RapporRecorderImpl(); |
| 15 ~RapporRecorderImpl() override; |
| 16 |
| 17 static void Create(mojom::RapporRecorderRequest request); |
| 18 |
| 19 private: |
| 20 void RecordRappor(const std::string& metric, |
| 21 const std::string& sample) override; |
| 22 void RecordRapporURL(const std::string& metric, const GURL& sample) override; |
| 23 }; |
| 24 |
| 25 #endif // CHROME_BROWSER_RAPPOR_RECORDER_IMPL_H_ |
OLD | NEW |