This source file includes following definitions.
- embed_origin_
- GetURL
#include "google_apis/drive/gdata_wapi_requests.h"
#include "google_apis/drive/gdata_wapi_url_generator.h"
namespace google_apis {
GetResourceEntryRequest::GetResourceEntryRequest(
RequestSender* sender,
const GDataWapiUrlGenerator& url_generator,
const std::string& resource_id,
const GURL& embed_origin,
const GetDataCallback& callback)
: GetDataRequest(sender, callback),
url_generator_(url_generator),
resource_id_(resource_id),
embed_origin_(embed_origin) {
DCHECK(!callback.is_null());
}
GetResourceEntryRequest::~GetResourceEntryRequest() {}
GURL GetResourceEntryRequest::GetURL() const {
return url_generator_.GenerateEditUrlWithEmbedOrigin(
resource_id_, embed_origin_);
}
}