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

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

Issue 2023023002: skiaserve: Add /quitquitquit handler. Will be used in the hosted debugger. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: space Created 4 years, 6 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/QuitHandler.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 * Posting to /srgbMode/0 causes SkColor to be linear, /colorMode/1 147 * Posting to /srgbMode/0 causes SkColor to be linear, /colorMode/1
148 * causes SkColor to be sRGB; 148 * causes SkColor to be sRGB;
149 */ 149 */
150 class SRGBModeHandler : public UrlHandler { 150 class SRGBModeHandler : public UrlHandler {
151 public: 151 public:
152 bool canHandle(const char* method, const char* url) override; 152 bool canHandle(const char* method, const char* url) override;
153 int handle(Request* request, MHD_Connection* connection, 153 int handle(Request* request, MHD_Connection* connection,
154 const char* url, const char* method, 154 const char* url, const char* method,
155 const char* upload_data, size_t* upload_data_size) override; 155 const char* upload_data, size_t* upload_data_size) override;
156 }; 156 };
157
158 class QuitHandler : public UrlHandler {
159 public:
160 bool canHandle(const char* method, const char* url) override;
161 int handle(Request* request, MHD_Connection* connection,
162 const char* url, const char* method,
163 const char* upload_data, size_t* upload_data_size) override;
164 };
165
OLDNEW
« no previous file with comments | « tools/skiaserve/urlhandlers/QuitHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698