update api changes

This commit is contained in:
deepak1556 2017-02-09 16:30:17 +05:30
parent 07835bf4e6
commit b9710532e1

View file

@ -46,10 +46,10 @@ class BundledDataSource : public content::URLDataSource {
// content::URLDataSource implementation. // content::URLDataSource implementation.
std::string GetSource() const override { return kPdfViewerUIHost; } std::string GetSource() const override { return kPdfViewerUIHost; }
void StartDataRequest(const std::string& path, void StartDataRequest(
int render_process_id, const std::string& path,
int render_frame_id, const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
const GotDataCallback& callback) override { const GotDataCallback& callback) override {
std::string filename = PathWithoutParams(path); std::string filename = PathWithoutParams(path);
auto entry = auto entry =
path_to_resource_id_.find(base::FilePath::FromUTF8Unsafe(filename)); path_to_resource_id_.find(base::FilePath::FromUTF8Unsafe(filename));