| OLD | NEW |
| 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 "chrome/common/net/net_error_info.h" | 8 #include "chrome/common/net/net_error_info.h" |
| 9 #include "chrome/common/net/net_error_tracker.h" | 9 #include "chrome/common/net/net_error_tracker.h" |
| 10 #include "content/public/renderer/render_view_observer.h" | 10 #include "content/public/renderer/render_view_observer.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 32 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 void OnNetErrorInfo(int dns_probe_result); | 35 void OnNetErrorInfo(int dns_probe_result); |
| 36 void TrackerCallback(NetErrorTracker::DnsErrorPageState state); | 36 void TrackerCallback(NetErrorTracker::DnsErrorPageState state); |
| 37 void UpdateErrorPage(chrome_common_net::DnsProbeResult dns_probe_result); | 37 void UpdateErrorPage(chrome_common_net::DnsProbeResult dns_probe_result); |
| 38 | 38 |
| 39 NetErrorTracker tracker_; | 39 NetErrorTracker tracker_; |
| 40 NetErrorTracker::DnsErrorPageState dns_error_page_state_; | 40 NetErrorTracker::DnsErrorPageState dns_error_page_state_; |
| 41 bool updated_error_page_; | 41 bool updated_error_page_; |
| 42 bool is_failed_post_; | |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ | 44 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ |
| OLD | NEW |