Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: tools/skiaserve/urlhandlers/UrlHandler.h

Issue 1737323002: Wire up /batches in skiaserve (Closed) Base URL: https://skia.googlesource.com/skia@skiaserve-1
Patch Set: minor tweak Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/skiaserve/urlhandlers/CmdHandler.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/skiaserve/urlhandlers/CmdHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698