| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef REMOTING_TEST_APP_REMOTING_REPORT_ISSUE_REQUEST_H_ | 5 #ifndef REMOTING_TEST_APP_REMOTING_REPORT_ISSUE_REQUEST_H_ |
| 6 #define REMOTING_TEST_APP_REMOTING_REPORT_ISSUE_REQUEST_H_ | 6 #define REMOTING_TEST_APP_REMOTING_REPORT_ISSUE_REQUEST_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 #include "net/url_request/url_fetcher_delegate.h" | 14 #include "net/url_request/url_fetcher_delegate.h" |
| 15 #include "remoting/test/app_remoting_service_urls.h" | 15 #include "remoting/test/app_remoting_service_urls.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 class UrlFetcher; | 18 class UrlFetcher; |
| 19 } | 19 } |
| 20 namespace remoting { | 20 namespace remoting { |
| 21 class URLRequestContextGetter; | 21 class URLRequestContextGetter; |
| 22 } | 22 } |
| 23 | 23 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 39 const std::string& access_token, | 39 const std::string& access_token, |
| 40 ServiceEnvironment service_environment, | 40 ServiceEnvironment service_environment, |
| 41 bool abandon_host, | 41 bool abandon_host, |
| 42 base::Closure done_callback); | 42 base::Closure done_callback); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // net::URLFetcherDelegate interface. | 45 // net::URLFetcherDelegate interface. |
| 46 void OnURLFetchComplete(const net::URLFetcher* source) override; | 46 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 47 | 47 |
| 48 // Holds the URLFetcher for the ReportIssue request. | 48 // Holds the URLFetcher for the ReportIssue request. |
| 49 scoped_ptr<net::URLFetcher> request_; | 49 std::unique_ptr<net::URLFetcher> request_; |
| 50 | 50 |
| 51 // Provides application-specific context for the network request. | 51 // Provides application-specific context for the network request. |
| 52 scoped_refptr<remoting::URLRequestContextGetter> request_context_getter_; | 52 scoped_refptr<remoting::URLRequestContextGetter> request_context_getter_; |
| 53 | 53 |
| 54 // Caller-supplied callback which is signalled when the request is complete. | 54 // Caller-supplied callback which is signalled when the request is complete. |
| 55 base::Closure request_complete_callback_; | 55 base::Closure request_complete_callback_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(AppRemotingReportIssueRequest); | 57 DISALLOW_COPY_AND_ASSIGN(AppRemotingReportIssueRequest); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } // namespace test | 60 } // namespace test |
| 61 } // namespace remoting | 61 } // namespace remoting |
| 62 | 62 |
| 63 #endif // REMOTING_TEST_APP_REMOTING_REPORT_ISSUE_REQUEST_H_ | 63 #endif // REMOTING_TEST_APP_REMOTING_REPORT_ISSUE_REQUEST_H_ |
| OLD | NEW |