| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 5 #ifndef COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
| 6 #define COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 6 #define COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Note that this is different from the saved copy in the cache as in | 123 // Note that this is different from the saved copy in the cache as in |
| 124 // LoadPageFromCache. | 124 // LoadPageFromCache. |
| 125 virtual void LoadOfflineCopy(const GURL& page_url) = 0; | 125 virtual void LoadOfflineCopy(const GURL& page_url) = 0; |
| 126 | 126 |
| 127 protected: | 127 protected: |
| 128 virtual ~Delegate() {} | 128 virtual ~Delegate() {} |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 struct NavigationCorrectionParams { | 131 struct NavigationCorrectionParams { |
| 132 NavigationCorrectionParams(); | 132 NavigationCorrectionParams(); |
| 133 NavigationCorrectionParams(const NavigationCorrectionParams& other); |
| 133 ~NavigationCorrectionParams(); | 134 ~NavigationCorrectionParams(); |
| 134 | 135 |
| 135 // URL used both for getting the suggestions and tracking clicks. | 136 // URL used both for getting the suggestions and tracking clicks. |
| 136 GURL url; | 137 GURL url; |
| 137 | 138 |
| 138 std::string language; | 139 std::string language; |
| 139 std::string country_code; | 140 std::string country_code; |
| 140 std::string api_key; | 141 std::string api_key; |
| 141 GURL search_url; | 142 GURL search_url; |
| 142 }; | 143 }; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 308 |
| 308 // This value is set only when a navigation has been initiated from | 309 // This value is set only when a navigation has been initiated from |
| 309 // the error page. It is used to detect when such navigations result | 310 // the error page. It is used to detect when such navigations result |
| 310 // in errors. | 311 // in errors. |
| 311 Button navigation_from_button_; | 312 Button navigation_from_button_; |
| 312 }; | 313 }; |
| 313 | 314 |
| 314 } // namespace error_page | 315 } // namespace error_page |
| 315 | 316 |
| 316 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 317 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
| OLD | NEW |