OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/feedback/feedback_uploader_delegate.h" | 5 #include "components/feedback/feedback_uploader_delegate.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/url_request/url_fetcher.h" | 10 #include "net/url_request/url_fetcher.h" |
11 #include "url/gurl.h" | |
12 | 11 |
13 namespace feedback { | 12 namespace feedback { |
14 namespace { | 13 namespace { |
15 | 14 |
16 const int kHttpPostSuccessNoContent = 204; | 15 const int kHttpPostSuccessNoContent = 204; |
17 const int kHttpPostFailNoConnection = -1; | 16 const int kHttpPostFailNoConnection = -1; |
18 const int kHttpPostFailClientError = 400; | 17 const int kHttpPostFailClientError = 400; |
19 const int kHttpPostFailServerError = 500; | 18 const int kHttpPostFailServerError = 500; |
20 | 19 |
21 } // namespace | 20 } // namespace |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 55 } |
57 | 56 |
58 LOG(WARNING) << "FEEDBACK: Submission to feedback server (" | 57 LOG(WARNING) << "FEEDBACK: Submission to feedback server (" |
59 << source->GetURL() << ") status: " << error_stream.str(); | 58 << source->GetURL() << ") status: " << error_stream.str(); |
60 | 59 |
61 // This instance won't be used for anything else, delete us. | 60 // This instance won't be used for anything else, delete us. |
62 delete this; | 61 delete this; |
63 } | 62 } |
64 | 63 |
65 } // namespace feedback | 64 } // namespace feedback |
OLD | NEW |