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

Unified Diff: chrome/browser/search/one_google_bar/one_google_bar_data.h

Issue 2814753002: Local NTP: Introduce OneGoogleBarFetcher (Closed)
Patch Set: safe_json Created 3 years, 8 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 | « chrome/browser/BUILD.gn ('k') | chrome/browser/search/one_google_bar/one_google_bar_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/one_google_bar/one_google_bar_data.h
diff --git a/chrome/browser/search/one_google_bar/one_google_bar_data.h b/chrome/browser/search/one_google_bar/one_google_bar_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..caf3a27d550badee63af7af80466210c32d7f7a7
--- /dev/null
+++ b/chrome/browser/search/one_google_bar/one_google_bar_data.h
@@ -0,0 +1,32 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_DATA_H_
+#define CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_DATA_H_
+
+#include <string>
+
+// This struct contains all the data needed to inject a OneGoogleBar into a
+// page.
+struct OneGoogleBarData {
+ OneGoogleBarData();
+ OneGoogleBarData(const OneGoogleBarData&);
+ OneGoogleBarData(OneGoogleBarData&&);
+ ~OneGoogleBarData();
+
+ OneGoogleBarData& operator=(const OneGoogleBarData&);
+ OneGoogleBarData& operator=(OneGoogleBarData&&);
+
+ // The main HTML for the bar itself.
+ std::string bar_html;
+
+ // "Page hooks" that need to be inserted at certain points in the page HTML.
+ std::string in_head_script;
+ std::string in_head_style;
+ std::string after_bar_script;
+ std::string end_of_body_html;
+ std::string end_of_body_script;
+};
+
+#endif // CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_DATA_H_
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/search/one_google_bar/one_google_bar_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698