OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_DATA_H_ |
| 6 #define CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_DATA_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 // This struct contains all the data needed to inject a OneGoogleBar into a |
| 11 // page. |
| 12 struct OneGoogleBarData { |
| 13 OneGoogleBarData(); |
| 14 OneGoogleBarData(const OneGoogleBarData&); |
| 15 OneGoogleBarData(OneGoogleBarData&&); |
| 16 ~OneGoogleBarData(); |
| 17 |
| 18 OneGoogleBarData& operator=(const OneGoogleBarData&); |
| 19 OneGoogleBarData& operator=(OneGoogleBarData&&); |
| 20 |
| 21 // The main HTML for the bar itself. |
| 22 std::string bar_html; |
| 23 |
| 24 // "Page hooks" that need to be inserted at certain points in the page HTML. |
| 25 std::string in_head_script; |
| 26 std::string in_head_style; |
| 27 std::string after_bar_script; |
| 28 std::string end_of_body_html; |
| 29 std::string end_of_body_script; |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_SEARCH_ONE_GOOGLE_BAR_ONE_GOOGLE_BAR_DATA_H_ |
OLD | NEW |