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 #ifndef CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_REQUEST_H_ | 5 #ifndef CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_REQUEST_H_ |
6 #define CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_REQUEST_H_ | 6 #define CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_REQUEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // Add header to request. | 57 // Add header to request. |
58 void AddHeader(const std::string& header); | 58 void AddHeader(const std::string& header); |
59 | 59 |
60 private: | 60 private: |
61 CloudPrintRequest(const GURL& url, | 61 CloudPrintRequest(const GURL& url, |
62 net::URLFetcher::RequestType method, | 62 net::URLFetcher::RequestType method, |
63 Delegate* delegate); | 63 Delegate* delegate); |
64 | 64 |
65 // net::URLFetcherDelegate methods: | 65 // net::URLFetcherDelegate methods: |
66 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; | 66 virtual void OnURLFetchComplete(const net::URLFetcher* source) override; |
67 | 67 |
68 // Method for handling timeout. | 68 // Method for handling timeout. |
69 void OnRequestTimeout(); | 69 void OnRequestTimeout(); |
70 | 70 |
71 scoped_ptr<net::URLFetcher> fetcher_; | 71 scoped_ptr<net::URLFetcher> fetcher_; |
72 | 72 |
73 Delegate* delegate_; | 73 Delegate* delegate_; |
74 | 74 |
75 DISALLOW_COPY_AND_ASSIGN(CloudPrintRequest); | 75 DISALLOW_COPY_AND_ASSIGN(CloudPrintRequest); |
76 }; | 76 }; |
77 | 77 |
78 #endif // CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_REQUEST_H_ | 78 #endif // CLOUD_PRINT_GCP20_PROTOTYPE_CLOUD_PRINT_REQUEST_H_ |
79 | 79 |
OLD | NEW |