Rosetta
|
#include <geturl_handler.h>
Public Member Functions | |
void | Start () |
Static Public Member Functions | |
static GetURLHandler * | Create (pp::Instance *instance_, const std::string &url, utility::Inline_File_Provider_Hook *file_provider_hook) |
Private Member Functions | |
GetURLHandler (pp::Instance *instance_, const std::string &url, utility::Inline_File_Provider_Hook *file_provider_hook) | |
~GetURLHandler () | |
void | OnOpen (int32_t result) |
void | OnRead (int32_t result) |
void | ReadBody () |
void | AppendDataBytes (const char *buffer, int32_t num_bytes) |
void | ReportResult (const std::string &fname, const std::string &text, bool success) |
void | ReportResultAndDie (const std::string &fname, const std::string &text, bool success) |
GetURLHandler (const GetURLHandler &) | |
void | operator= (const GetURLHandler &) |
Private Attributes | |
pp::Instance * | instance_ |
std::string | url_ |
pp::URLRequestInfo | url_request_ |
pp::URLLoader | url_loader_ |
char * | buffer_ |
std::string | url_response_body_ |
pp::CompletionCallbackFactory< GetURLHandler > | cc_factory_ |
utility::Inline_File_Provider_Hook * | file_provider_hook_ |
|
private |
References cache_trajectory::url, and url_request_.
Referenced by Create().
|
private |
References buffer_.
|
private |
|
private |
References min(), READ_BUFFER_SIZE, and url_response_body_.
Referenced by OnRead(), and ReadBody().
|
static |
References GetURLHandler(), and cache_trajectory::url.
Referenced by nacl_rosetta::RosettaInstance::request_file_transfer().
|
private |
References ReadBody(), ReportResultAndDie(), challenge::ss, url_, url_loader_, url_request_, and url_response_body_.
Referenced by Start().
|
private |
References AppendDataBytes(), buffer_, ReadBody(), ReportResultAndDie(), url_, and url_response_body_.
Referenced by ReadBody().
|
private |
|
private |
References AppendDataBytes(), buffer_, cc_factory_, OnRead(), READ_BUFFER_SIZE, and url_loader_.
|
private |
|
private |
void GetURLHandler::Start | ( | ) |
References cc_factory_, OnOpen(), url_loader_, and url_request_.
Referenced by nacl_rosetta::RosettaInstance::request_file_transfer().
|
private |
Referenced by OnRead(), ReadBody(), and ~GetURLHandler().
|
private |
Referenced by ReadBody(), and Start().
|
private |
Referenced by ReportResult().
|
private |
Referenced by ReportResult().
|
private |
Referenced by OnOpen(), ReadBody(), and Start().
|
private |
Referenced by GetURLHandler(), OnOpen(), and Start().
|
private |
Referenced by AppendDataBytes(), OnOpen(), and OnRead().