update api changes
This commit is contained in:
parent
07835bf4e6
commit
b9710532e1
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue