OLD | NEW |
(Empty) | |
| 1 // Copyright 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 #include "net/reporting/reporting_delegate.h" |
| 6 |
| 7 #include "base/memory/ptr_util.h" |
| 8 |
| 9 namespace net { |
| 10 |
| 11 namespace { |
| 12 |
| 13 class ReportingDelegateImpl : public ReportingDelegate { |
| 14 public: |
| 15 ReportingDelegateImpl() {} |
| 16 |
| 17 ~ReportingDelegateImpl() override {} |
| 18 |
| 19 bool CanQueueReport(const url::Origin& origin) const override { return true; } |
| 20 |
| 21 bool CanSendReport(const url::Origin& origin) const override { return true; } |
| 22 |
| 23 bool CanSetClient(const url::Origin& origin, |
| 24 const GURL& endpoint) const override { |
| 25 return true; |
| 26 } |
| 27 |
| 28 bool CanUseClient(const url::Origin& origin, |
| 29 const GURL& endpoint) const override { |
| 30 return true; |
| 31 } |
| 32 }; |
| 33 |
| 34 } // namespace |
| 35 |
| 36 // static |
| 37 std::unique_ptr<ReportingDelegate> ReportingDelegate::Create() { |
| 38 return base::MakeUnique<ReportingDelegateImpl>(); |
| 39 } |
| 40 |
| 41 ReportingDelegate::~ReportingDelegate() {} |
| 42 |
| 43 } // namespace net |
OLD | NEW |