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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 * Returns a json descripton of all the batches in the image | 105 * Returns a json descripton of all the batches in the image |
106 */ | 106 */ |
107 class BatchesHandler : public UrlHandler { | 107 class BatchesHandler : public UrlHandler { |
108 public: | 108 public: |
109 bool canHandle(const char* method, const char* url) override; | 109 bool canHandle(const char* method, const char* url) override; |
110 int handle(Request* request, MHD_Connection* connection, | 110 int handle(Request* request, MHD_Connection* connection, |
111 const char* url, const char* method, | 111 const char* url, const char* method, |
112 const char* upload_data, size_t* upload_data_size) override; | 112 const char* upload_data, size_t* upload_data_size) override; |
113 }; | 113 }; |
114 | 114 |
| 115 /* |
| 116 * Enables drawing of batch bounds |
| 117 */ |
| 118 class BatchBoundsHandler : public UrlHandler { |
| 119 public: |
| 120 bool canHandle(const char* method, const char* url) override; |
| 121 int handle(Request* request, MHD_Connection* connection, |
| 122 const char* url, const char* method, |
| 123 const char* upload_data, size_t* upload_data_size) override; |
| 124 }; |
| 125 |
115 class RootHandler : public UrlHandler { | 126 class RootHandler : public UrlHandler { |
116 public: | 127 public: |
117 bool canHandle(const char* method, const char* url) override; | 128 bool canHandle(const char* method, const char* url) override; |
118 int handle(Request* request, MHD_Connection* connection, | 129 int handle(Request* request, MHD_Connection* connection, |
119 const char* url, const char* method, | 130 const char* url, const char* method, |
120 const char* upload_data, size_t* upload_data_size) override; | 131 const char* upload_data, size_t* upload_data_size) override; |
121 }; | 132 }; |
122 | 133 |
OLD | NEW |