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

Side by Side Diff: chrome/renderer/net/net_error_helper.h

Issue 1214303003: Add UMA histograms for Google cached copy experiment on network error interstitial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix NetErrorHelperCore unittest Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/net/net_error_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ 5 #ifndef CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
6 #define CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ 6 #define CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 void TrackClick(int tracking_id); 82 void TrackClick(int tracking_id);
83 83
84 private: 84 private:
85 // NetErrorHelperCore::Delegate implementation: 85 // NetErrorHelperCore::Delegate implementation:
86 void GenerateLocalizedErrorPage( 86 void GenerateLocalizedErrorPage(
87 const blink::WebURLError& error, 87 const blink::WebURLError& error,
88 bool is_failed_post, 88 bool is_failed_post,
89 scoped_ptr<error_page::ErrorPageParams> params, 89 scoped_ptr<error_page::ErrorPageParams> params,
90 bool* reload_button_shown, 90 bool* reload_button_shown,
91 bool* show_saved_copy_button_shown, 91 bool* show_saved_copy_button_shown,
92 bool* show_cached_copy_button_shown,
93 bool* show_cached_page_button_shown,
92 std::string* html) const override; 94 std::string* html) const override;
93 void LoadErrorPageInMainFrame(const std::string& html, 95 void LoadErrorPageInMainFrame(const std::string& html,
94 const GURL& failed_url) override; 96 const GURL& failed_url) override;
95 void EnablePageHelperFunctions() override; 97 void EnablePageHelperFunctions() override;
96 void UpdateErrorPage(const blink::WebURLError& error, 98 void UpdateErrorPage(const blink::WebURLError& error,
97 bool is_failed_post) override; 99 bool is_failed_post) override;
98 void FetchNavigationCorrections( 100 void FetchNavigationCorrections(
99 const GURL& navigation_correction_url, 101 const GURL& navigation_correction_url,
100 const std::string& navigation_correction_request_body) override; 102 const std::string& navigation_correction_request_body) override;
101 void CancelFetchNavigationCorrections() override; 103 void CancelFetchNavigationCorrections() override;
(...skipping 17 matching lines...) Expand all
119 121
120 scoped_ptr<content::ResourceFetcher> correction_fetcher_; 122 scoped_ptr<content::ResourceFetcher> correction_fetcher_;
121 scoped_ptr<content::ResourceFetcher> tracking_fetcher_; 123 scoped_ptr<content::ResourceFetcher> tracking_fetcher_;
122 124
123 scoped_ptr<error_page::NetErrorHelperCore> core_; 125 scoped_ptr<error_page::NetErrorHelperCore> core_;
124 126
125 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); 127 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper);
126 }; 128 };
127 129
128 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ 130 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/net/net_error_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698