| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 public NetErrorPageController::Delegate { | 44 public NetErrorPageController::Delegate { |
| 45 public: | 45 public: |
| 46 explicit NetErrorHelper(content::RenderFrame* render_view); | 46 explicit NetErrorHelper(content::RenderFrame* render_view); |
| 47 ~NetErrorHelper() override; | 47 ~NetErrorHelper() override; |
| 48 | 48 |
| 49 // NetErrorPageController::Delegate implementation | 49 // NetErrorPageController::Delegate implementation |
| 50 void ButtonPressed(error_page::NetErrorHelperCore::Button button) override; | 50 void ButtonPressed(error_page::NetErrorHelperCore::Button button) override; |
| 51 void TrackClick(int tracking_id) override; | 51 void TrackClick(int tracking_id) override; |
| 52 | 52 |
| 53 // RenderFrameObserver implementation. | 53 // RenderFrameObserver implementation. |
| 54 void DidStartProvisionalLoad() override; | 54 void DidStartProvisionalLoad(blink::WebDataSource* datasource) override; |
| 55 void DidCommitProvisionalLoad(bool is_new_navigation, | 55 void DidCommitProvisionalLoad(bool is_new_navigation, |
| 56 bool is_same_page_navigation) override; | 56 bool is_same_page_navigation) override; |
| 57 void DidFinishLoad() override; | 57 void DidFinishLoad() override; |
| 58 void OnStop() override; | 58 void OnStop() override; |
| 59 void WasShown() override; | 59 void WasShown() override; |
| 60 void WasHidden() override; | 60 void WasHidden() override; |
| 61 | 61 |
| 62 // IPC::Listener implementation. | 62 // IPC::Listener implementation. |
| 63 bool OnMessageReceived(const IPC::Message& message) override; | 63 bool OnMessageReceived(const IPC::Message& message) override; |
| 64 | 64 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak | 132 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak |
| 133 // pointers are invalidated on each commit, to prevent getting messages from | 133 // pointers are invalidated on each commit, to prevent getting messages from |
| 134 // Controllers used for the previous commit that haven't yet been cleaned up. | 134 // Controllers used for the previous commit that haven't yet been cleaned up. |
| 135 base::WeakPtrFactory<NetErrorPageController::Delegate> | 135 base::WeakPtrFactory<NetErrorPageController::Delegate> |
| 136 weak_controller_delegate_factory_; | 136 weak_controller_delegate_factory_; |
| 137 | 137 |
| 138 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); | 138 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ | 141 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ |
| OLD | NEW |