Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1038)

Unified Diff: chrome/browser/search/local_ntp_source.h

Issue 1376243005: Enabling included files when reloading local NTP with --local-ntp-reload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing fserb and mathp comments.: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/search/local_ntp_source.cc » ('j') | chrome/browser/search/local_ntp_source.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/local_ntp_source.h
diff --git a/chrome/browser/search/local_ntp_source.h b/chrome/browser/search/local_ntp_source.h
index c4085232817fb30506fe9087638ddbfcdb212c92..03e02cf883ddd6e3377b465a922660a01dc6851d 100644
--- a/chrome/browser/search/local_ntp_source.h
+++ b/chrome/browser/search/local_ntp_source.h
@@ -31,6 +31,18 @@ class LocalNtpSource : public content::URLDataSource {
bool ShouldServiceRequest(const net::URLRequest* request) const override;
std::string GetContentSecurityPolicyFrameSrc() const override;
+ // Helper methods for inlining sources from <include> directives:
+ static void FlattenLocalInclude(
+ const content::URLDataSource::GotDataCallback& callback,
+ std::string topLevelResource,
+ base::RefCountedMemory* inlineResource);
+ static void CheckLocalIncludes(
+ const content::URLDataSource::GotDataCallback& callback,
+ base::RefCountedMemory* resource);
+ static void CheckLocalIncludesHelper(
+ const content::URLDataSource::GotDataCallback& callback,
+ std::string resource);
+
Profile* profile_;
DISALLOW_COPY_AND_ASSIGN(LocalNtpSource);
« no previous file with comments | « no previous file | chrome/browser/search/local_ntp_source.cc » ('j') | chrome/browser/search/local_ntp_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698