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

Side by Side Diff: libraries/nacl-mounts/base/UrlLoaderJob.h

Issue 9271014: Another ugly hack to work around ppapi header changes. (Closed) Base URL: http://naclports.googlecode.com/svn/trunk/src/
Patch Set: '' Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | libraries/nacl-mounts/http2/HTTP2FSOpenJob.h » ('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 (c) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_ 6 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_
7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_ 7 #define PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_
8 8
9 #include "../util/ppapi_version.h"
9 #include <ppapi/c/pp_errors.h> 10 #include <ppapi/c/pp_errors.h>
10 #include <ppapi/cpp/completion_callback.h> 11 #include <ppapi/cpp/completion_callback.h>
11 #include <ppapi/cpp/url_loader.h> 12 #include <ppapi/cpp/url_loader.h>
12 #include <ppapi/cpp/url_request_info.h> 13 #include <ppapi/cpp/url_request_info.h>
13 #include <ppapi/cpp/url_response_info.h> 14 #include <ppapi/cpp/url_response_info.h>
15 #if ADHOC_PPAPI_VERSION >= 18
16 #include <ppapi/utility/completion_callback_factory.h>
17 #endif
14 #include <string> 18 #include <string>
15 #include <vector> 19 #include <vector>
16 #include "MainThreadRunner.h" 20 #include "MainThreadRunner.h"
17 21
18 class UrlLoaderJob : public MainThreadJob { 22 class UrlLoaderJob : public MainThreadJob {
19 public: 23 public:
20 UrlLoaderJob(); 24 UrlLoaderJob();
21 ~UrlLoaderJob(); 25 ~UrlLoaderJob();
22 26
23 // AppendField() adds the key and value to the request body 27 // AppendField() adds the key and value to the request body
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 std::vector<char> *dst_; 83 std::vector<char> *dst_;
80 std::string method_; 84 std::string method_;
81 bool did_open_; 85 bool did_open_;
82 int start_; 86 int start_;
83 int length_; 87 int length_;
84 Result *result_dst_; 88 Result *result_dst_;
85 char buf_[4096]; 89 char buf_[4096];
86 }; 90 };
87 91
88 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_ 92 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_BASE_URLLOADERJOB_H_
OLDNEW
« no previous file with comments | « no previous file | libraries/nacl-mounts/http2/HTTP2FSOpenJob.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698