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_ |