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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload er_impl.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload er_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "chrome/common/safe_browsing/csd.pb.h"
11 #include "components/data_use_measurement/core/data_use_user_data.h" 10 #include "components/data_use_measurement/core/data_use_user_data.h"
11 #include "components/safe_browsing/csd.pb.h"
12 #include "google_apis/google_api_keys.h" 12 #include "google_apis/google_api_keys.h"
13 #include "net/base/escape.h" 13 #include "net/base/escape.h"
14 #include "net/base/load_flags.h" 14 #include "net/base/load_flags.h"
15 #include "net/http/http_status_code.h" 15 #include "net/http/http_status_code.h"
16 #include "net/url_request/url_fetcher.h" 16 #include "net/url_request/url_fetcher.h"
17 17
18 namespace safe_browsing { 18 namespace safe_browsing {
19 19
20 namespace { 20 namespace {
21 21
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } else { 96 } else {
97 result = UPLOAD_SUCCESS; 97 result = UPLOAD_SUCCESS;
98 } 98 }
99 } 99 }
100 // Callbacks have a tendency to delete the uploader, so no touching anything 100 // Callbacks have a tendency to delete the uploader, so no touching anything
101 // after this. 101 // after this.
102 callback_.Run(result, std::move(response)); 102 callback_.Run(result, std::move(response));
103 } 103 }
104 104
105 } // namespace safe_browsing 105 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698