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

Unified Diff: trunk/src/chrome/renderer/net/net_error_helper.h

Issue 235883010: Revert 262846, as the revert has now been merged to M35. (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « trunk/src/chrome/common/render_messages.h ('k') | trunk/src/chrome/renderer/net/net_error_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/renderer/net/net_error_helper.h
===================================================================
--- trunk/src/chrome/renderer/net/net_error_helper.h (revision 263955)
+++ trunk/src/chrome/renderer/net/net_error_helper.h (working copy)
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/common/localized_error.h"
#include "chrome/common/net/net_error_info.h"
#include "chrome/renderer/net/net_error_helper_core.h"
#include "content/public/renderer/render_frame_observer.h"
@@ -70,25 +71,33 @@
private:
// NetErrorHelperCore::Delegate implementation:
- virtual void GenerateLocalizedErrorPage(const blink::WebURLError& error,
- bool is_failed_post,
- std::string* html) const OVERRIDE;
+ virtual void GenerateLocalizedErrorPage(
+ const blink::WebURLError& error,
+ bool is_failed_post,
+ scoped_ptr<LocalizedError::ErrorPageParams> params,
+ std::string* html) const OVERRIDE;
virtual void LoadErrorPageInMainFrame(const std::string& html,
const GURL& failed_url) OVERRIDE;
virtual void EnableStaleLoadBindings(const GURL& page_url) OVERRIDE;
virtual void UpdateErrorPage(const blink::WebURLError& error,
bool is_failed_post) OVERRIDE;
- virtual void FetchErrorPage(const GURL& url) OVERRIDE;
- virtual void CancelFetchErrorPage() OVERRIDE;
+ virtual void FetchNavigationCorrections(
+ const GURL& navigation_correction_url,
+ const std::string& navigation_correction_request_body) OVERRIDE;
+ virtual void CancelFetchNavigationCorrections() OVERRIDE;
virtual void ReloadPage() OVERRIDE;
void OnNetErrorInfo(int status);
- void OnSetAltErrorPageURL(const GURL& alternate_error_page_url);
+ void OnSetNavigationCorrectionInfo(const GURL& navigation_correction_url,
+ const std::string& language,
+ const std::string& country_code,
+ const std::string& api_key,
+ const GURL& search_url);
- void OnAlternateErrorPageRetrieved(const blink::WebURLResponse& response,
- const std::string& data);
+ void OnNavigationCorrectionsFetched(const blink::WebURLResponse& response,
+ const std::string& data);
- scoped_ptr<content::ResourceFetcher> alt_error_page_fetcher_;
+ scoped_ptr<content::ResourceFetcher> correction_fetcher_;
NetErrorHelperCore core_;
« no previous file with comments | « trunk/src/chrome/common/render_messages.h ('k') | trunk/src/chrome/renderer/net/net_error_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698