OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkColor.h" | 8 #include "SkColor.h" |
9 | 9 |
10 struct MHD_Connection; | 10 struct MHD_Connection; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 }; | 94 }; |
95 | 95 |
96 class DataHandler : public UrlHandler { | 96 class DataHandler : public UrlHandler { |
97 public: | 97 public: |
98 bool canHandle(const char* method, const char* url) override; | 98 bool canHandle(const char* method, const char* url) override; |
99 int handle(Request* request, MHD_Connection* connection, | 99 int handle(Request* request, MHD_Connection* connection, |
100 const char* url, const char* method, | 100 const char* url, const char* method, |
101 const char* upload_data, size_t* upload_data_size) override; | 101 const char* upload_data, size_t* upload_data_size) override; |
102 }; | 102 }; |
103 | 103 |
| 104 /* |
| 105 * Returns a json descripton of all the batches in the image |
| 106 */ |
| 107 class BatchesHandler : public UrlHandler { |
| 108 public: |
| 109 bool canHandle(const char* method, const char* url) override; |
| 110 int handle(Request* request, MHD_Connection* connection, |
| 111 const char* url, const char* method, |
| 112 const char* upload_data, size_t* upload_data_size) override; |
| 113 }; |
| 114 |
104 class RootHandler : public UrlHandler { | 115 class RootHandler : public UrlHandler { |
105 public: | 116 public: |
106 bool canHandle(const char* method, const char* url) override; | 117 bool canHandle(const char* method, const char* url) override; |
107 int handle(Request* request, MHD_Connection* connection, | 118 int handle(Request* request, MHD_Connection* connection, |
108 const char* url, const char* method, | 119 const char* url, const char* method, |
109 const char* upload_data, size_t* upload_data_size) override; | 120 const char* upload_data, size_t* upload_data_size) override; |
110 }; | 121 }; |
111 | 122 |
OLD | NEW |