format previously misses .cc files
This commit is contained in:
parent
284aca68c0
commit
49c8c31220
36 changed files with 1279 additions and 1411 deletions
|
@ -23,7 +23,8 @@ const char kChromeUIDevToolsBundledPath[] = "bundled";
|
|||
|
||||
std::string PathWithoutParams(const std::string& path) {
|
||||
return GURL(std::string("chrome-devtools://devtools/") + path)
|
||||
.path().substr(1);
|
||||
.path()
|
||||
.substr(1);
|
||||
}
|
||||
|
||||
std::string GetMimeTypeForPath(const std::string& path) {
|
||||
|
@ -57,9 +58,7 @@ class BundledDataSource : public content::URLDataSource {
|
|||
BundledDataSource() {}
|
||||
|
||||
// content::URLDataSource implementation.
|
||||
std::string GetSource() const override {
|
||||
return kChromeUIDevToolsHost;
|
||||
}
|
||||
std::string GetSource() const override { return kChromeUIDevToolsHost; }
|
||||
|
||||
void StartDataRequest(
|
||||
const std::string& path,
|
||||
|
@ -83,17 +82,11 @@ class BundledDataSource : public content::URLDataSource {
|
|||
return GetMimeTypeForPath(path);
|
||||
}
|
||||
|
||||
bool ShouldAddContentSecurityPolicy() const override {
|
||||
return false;
|
||||
}
|
||||
bool ShouldAddContentSecurityPolicy() const override { return false; }
|
||||
|
||||
bool ShouldDenyXFrameOptions() const override {
|
||||
return false;
|
||||
}
|
||||
bool ShouldDenyXFrameOptions() const override { return false; }
|
||||
|
||||
bool ShouldServeMimeTypeAsContentTypeHeader() const override {
|
||||
return true;
|
||||
}
|
||||
bool ShouldServeMimeTypeAsContentTypeHeader() const override { return true; }
|
||||
|
||||
void StartBundledDataRequest(const std::string& path,
|
||||
const GotDataCallback& callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue