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

Side by Side Diff: tools/skiaserve/Response.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, 10 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/Request.cpp ('k') | tools/skiaserve/Response.cpp » ('j') | 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 #ifndef Reponse_DEFINED 8 #ifndef Reponse_DEFINED
9 #define Reponse_DEFINED 9 #define Reponse_DEFINED
10 10
11 struct MHD_Connection; 11 struct MHD_Connection;
12 struct Request; 12 struct Request;
13 class SkData; 13 class SkData;
14 14
15 namespace Response { 15 namespace Response {
16 // SendOK just sends an empty response with a 200 OK status code. 16 // SendOK just sends an empty response with a 200 OK status code.
17 int SendOK(MHD_Connection* connection); 17 int SendOK(MHD_Connection* connection);
18 18
19 int SendError(MHD_Connection* connection, const char* msg); 19 int SendError(MHD_Connection* connection, const char* msg);
20 20
21 int SendData(MHD_Connection* connection, const SkData* data, const char* typ e, 21 int SendData(MHD_Connection* connection, const SkData* data, const char* typ e,
22 bool setContentDisposition = false, const char* dispositionStri ng = nullptr); 22 bool setContentDisposition = false, const char* dispositionStri ng = nullptr);
23 23
24 int SendJSON(MHD_Connection* connection, Request* request, int n);
25
26 int SendTemplate(MHD_Connection* connection, bool redirect = false, 24 int SendTemplate(MHD_Connection* connection, bool redirect = false,
27 const char* redirectUrl = nullptr); 25 const char* redirectUrl = nullptr);
28 } 26 }
29 27
30 #endif 28 #endif
OLDNEW
« no previous file with comments | « tools/skiaserve/Request.cpp ('k') | tools/skiaserve/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698