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

Side by Side Diff: chrome/browser/search/contextual_search_promo_source_android.h

Issue 1103163004: [Contextual Search] Remove opt-in code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Donn's comments Created 5 years, 7 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_ANDROID_H_
6 #define CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_ANDROID_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "content/public/browser/url_data_source.h"
11
12 // Serves HTML for displaying the contextual search first-run promo.
13 class ContextualSearchPromoSourceAndroid : public content::URLDataSource {
14 public:
15 ContextualSearchPromoSourceAndroid();
16 ~ContextualSearchPromoSourceAndroid() override;
17
18 protected:
19 // Overridden from content::URLDataSource:
20 void StartDataRequest(
21 const std::string& path_and_query,
22 int render_process_id,
23 int render_frame_id,
24 const content::URLDataSource::GotDataCallback& callback) override;
25 std::string GetSource() const override;
26 std::string GetMimeType(const std::string& path_and_query) const override;
27 bool ShouldDenyXFrameOptions() const override;
28 bool ShouldAddContentSecurityPolicy() const override;
29
30 // Sends unmodified resource bytes.
31 void SendResource(
32 int resource_id,
33 const content::URLDataSource::GotDataCallback& callback);
34
35 // Sends the config JS resource.
36 void SendConfigResource(
37 const content::URLDataSource::GotDataCallback& callback);
38
39 // Sends HTML with localized strings.
40 void SendHtmlWithStrings(
41 const content::URLDataSource::GotDataCallback& callback);
42
43 private:
44 DISALLOW_COPY_AND_ASSIGN(ContextualSearchPromoSourceAndroid);
45 };
46
47 #endif // CHROME_BROWSER_SEARCH_CONTEXTUAL_SEARCH_PROMO_SOURCE_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/contextual_search/promo.js ('k') | chrome/browser/search/contextual_search_promo_source_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698