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

Side by Side Diff: net/reporting/reporting_delegate.cc

Issue 2889193002: Reporting: Add ReportingDelegate to check site permissions (Closed)
Patch Set: rebase, tweak, format Created 3 years, 7 months 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
« no previous file with comments | « net/reporting/reporting_delegate.h ('k') | net/reporting/reporting_delivery_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « net/reporting/reporting_delegate.h ('k') | net/reporting/reporting_delivery_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698