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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/file_downloader.h

Issue 9122012: gcl change rev (Closed) Base URL: svn://chrome-svn/chrome/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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_FILE_DOWNLOADER_H_ 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_FILE_DOWNLOADER_H_
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_FILE_DOWNLOADER_H_ 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_FILE_DOWNLOADER_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "native_client/src/include/nacl_macros.h" 10 #include "native_client/src/include/nacl_macros.h"
11 #include "native_client/src/include/nacl_string.h" 11 #include "native_client/src/include/nacl_string.h"
12 #include "ppapi/c/trusted/ppb_file_io_trusted.h" 12 #include "ppapi/c/trusted/ppb_file_io_trusted.h"
13 #include "ppapi/c/trusted/ppb_url_loader_trusted.h" 13 #include "ppapi/c/trusted/ppb_url_loader_trusted.h"
14 #include "ppapi/cpp/completion_callback.h"
15 #include "ppapi/cpp/file_io.h" 14 #include "ppapi/cpp/file_io.h"
16 #include "ppapi/cpp/url_loader.h" 15 #include "ppapi/cpp/url_loader.h"
17 #include "ppapi/cpp/instance.h" 16 #include "ppapi/cpp/instance.h"
17 #include "ppapi/utility/completion_callback_factory.h"
18 18
19 namespace plugin { 19 namespace plugin {
20 20
21 class Plugin; 21 class Plugin;
22 22
23 typedef enum { 23 typedef enum {
24 DOWNLOAD_TO_FILE = 0 << 0, 24 DOWNLOAD_TO_FILE = 0 << 0,
25 DOWNLOAD_TO_BUFFER = 1 << 0 25 DOWNLOAD_TO_BUFFER = 1 << 0
26 } DownloadFlags; 26 } DownloadFlags;
27 27
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 pp::CompletionCallbackFactory<FileDownloader> callback_factory_; 119 pp::CompletionCallbackFactory<FileDownloader> callback_factory_;
120 int64_t open_time_; 120 int64_t open_time_;
121 DownloadFlags flags_; 121 DownloadFlags flags_;
122 static const uint32_t kTempBufferSize = 1024; 122 static const uint32_t kTempBufferSize = 1024;
123 char temp_buffer_[kTempBufferSize]; 123 char temp_buffer_[kTempBufferSize];
124 std::deque<char> buffer_; 124 std::deque<char> buffer_;
125 UrlSchemeType url_scheme_; 125 UrlSchemeType url_scheme_;
126 }; 126 };
127 } // namespace plugin; 127 } // namespace plugin;
128 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_FILE_DOWNLOADER_H_ 128 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_FILE_DOWNLOADER_H_
OLDNEW
« no previous file with comments | « ppapi/examples/video_capture/video_capture.cc ('k') | ppapi/native_client/src/trusted/plugin/pnacl_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698