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

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

Issue 392273004: [Resources] Add the Roboto font for contextual_search_promo_source and localize strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaks Created 6 years, 5 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
Index: chrome/browser/search/contextual_search_promo_source.h
diff --git a/chrome/browser/search/contextual_search_promo_source.h b/chrome/browser/search/contextual_search_promo_source.h
index 77100289c3bdf767cbff188227a8f6576d6c0a01..c8b362da821a62e84295168f1af6c8f03ded4df6 100644
--- a/chrome/browser/search/contextual_search_promo_source.h
+++ b/chrome/browser/search/contextual_search_promo_source.h
@@ -26,12 +26,17 @@ class ContextualSearchPromoSource : public content::URLDataSource {
virtual std::string GetMimeType(
const std::string& path_and_query) const OVERRIDE;
virtual bool ShouldDenyXFrameOptions() const OVERRIDE;
+ virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE;
// Sends unmodified resource bytes.
void SendResource(
int resource_id,
const content::URLDataSource::GotDataCallback& callback);
+ // Sends HTML with localized strings.
+ void SendHtmlWithStrings(
+ const content::URLDataSource::GotDataCallback& callback);
+
private:
DISALLOW_COPY_AND_ASSIGN(ContextualSearchPromoSource);
};
« no previous file with comments | « chrome/browser/resources/contextual_search/roboto.woff ('k') | chrome/browser/search/contextual_search_promo_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698