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_PRIVET_HTTP_SERVER_H_ | 5 #ifndef CLOUD_PRINT_GCP20_PROTOTYPE_PRIVET_HTTP_SERVER_H_ |
6 #define CLOUD_PRINT_GCP20_PROTOTYPE_PRIVET_HTTP_SERVER_H_ | 6 #define CLOUD_PRINT_GCP20_PROTOTYPE_PRIVET_HTTP_SERVER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // |current_response| with error or empty response. | 197 // |current_response| with error or empty response. |
198 void ProcessRegistrationStatus( | 198 void ProcessRegistrationStatus( |
199 RegistrationErrorStatus status, | 199 RegistrationErrorStatus status, |
200 scoped_ptr<base::DictionaryValue>* current_response) const; | 200 scoped_ptr<base::DictionaryValue>* current_response) const; |
201 | 201 |
202 // Port for listening. | 202 // Port for listening. |
203 | 203 |
204 uint16 port_; | 204 uint16 port_; |
205 | 205 |
206 // Contains encapsulated object for listening for requests. | 206 // Contains encapsulated object for listening for requests. |
207 scoped_refptr<net::HttpServer> server_; | 207 scoped_ptr<net::HttpServer> server_; |
208 | 208 |
209 Delegate* delegate_; | 209 Delegate* delegate_; |
210 | 210 |
211 DISALLOW_COPY_AND_ASSIGN(PrivetHttpServer); | 211 DISALLOW_COPY_AND_ASSIGN(PrivetHttpServer); |
212 }; | 212 }; |
213 | 213 |
214 #endif // CLOUD_PRINT_GCP20_PROTOTYPE_PRIVET_HTTP_SERVER_H_ | 214 #endif // CLOUD_PRINT_GCP20_PROTOTYPE_PRIVET_HTTP_SERVER_H_ |
215 | |
OLD | NEW |