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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_H_ 5 #ifndef CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_H_
6 #define CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_H_ 6 #define CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/public/browser/url_data_source.h" 10 #include "content/public/browser/url_data_source.h"
11 11
12 // Serves HTML for displaying the contextual search first-run promo. 12 // Serves HTML for displaying the contextual search first-run promo.
13 class ContextualSearchPromoSource : public content::URLDataSource { 13 class ContextualSearchPromoSource : public content::URLDataSource {
14 public: 14 public:
15 ContextualSearchPromoSource(); 15 ContextualSearchPromoSource();
16 virtual ~ContextualSearchPromoSource(); 16 virtual ~ContextualSearchPromoSource();
17 17
18 protected: 18 protected:
19 // Overridden from content::URLDataSource: 19 // Overridden from content::URLDataSource:
20 virtual void StartDataRequest( 20 virtual void StartDataRequest(
21 const std::string& path_and_query, 21 const std::string& path_and_query,
22 int render_process_id, 22 int render_process_id,
23 int render_frame_id, 23 int render_frame_id,
24 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 24 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
25 virtual std::string GetSource() const OVERRIDE; 25 virtual std::string GetSource() const OVERRIDE;
26 virtual std::string GetMimeType( 26 virtual std::string GetMimeType(
27 const std::string& path_and_query) const OVERRIDE; 27 const std::string& path_and_query) const OVERRIDE;
28 virtual bool ShouldDenyXFrameOptions() const OVERRIDE; 28 virtual bool ShouldDenyXFrameOptions() const OVERRIDE;
29 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE;
29 30
30 // Sends unmodified resource bytes. 31 // Sends unmodified resource bytes.
31 void SendResource( 32 void SendResource(
32 int resource_id, 33 int resource_id,
33 const content::URLDataSource::GotDataCallback& callback); 34 const content::URLDataSource::GotDataCallback& callback);
34 35
36 // Sends HTML with localized strings.
37 void SendHtmlWithStrings(
38 const content::URLDataSource::GotDataCallback& callback);
39
35 private: 40 private:
36 DISALLOW_COPY_AND_ASSIGN(ContextualSearchPromoSource); 41 DISALLOW_COPY_AND_ASSIGN(ContextualSearchPromoSource);
37 }; 42 };
38 43
39 #endif // CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_H_ 44 #endif // CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_H_
OLDNEW
« 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