| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PAGE_CONTROLLER_H_ | 5 #ifndef CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ |
| 6 #define CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ | 6 #define CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "components/error_page/renderer/net_error_helper_core.h" | 10 #include "components/error_page/renderer/net_error_helper_core.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 private: | 50 private: |
| 51 explicit NetErrorPageController(base::WeakPtr<Delegate> delegate); | 51 explicit NetErrorPageController(base::WeakPtr<Delegate> delegate); |
| 52 ~NetErrorPageController() override; | 52 ~NetErrorPageController() override; |
| 53 | 53 |
| 54 // Execute a "Show saved copy" button click. | 54 // Execute a "Show saved copy" button click. |
| 55 bool ShowSavedCopyButtonClick(); | 55 bool ShowSavedCopyButtonClick(); |
| 56 | 56 |
| 57 // Execute a button click to show the list of all offline pages. | 57 // Execute a button click to show the list of all offline pages. |
| 58 bool ShowOfflinePagesButtonClick(); | 58 bool ShowOfflinePagesButtonClick(); |
| 59 | 59 |
| 60 // Execute a button click to show the offline copy of this page. | |
| 61 bool ShowOfflineCopyButtonClick(); | |
| 62 | |
| 63 // Execute a "Reload" button click. | 60 // Execute a "Reload" button click. |
| 64 bool ReloadButtonClick(); | 61 bool ReloadButtonClick(); |
| 65 | 62 |
| 66 // Execute a "Details" button click. | 63 // Execute a "Details" button click. |
| 67 bool DetailsButtonClick(); | 64 bool DetailsButtonClick(); |
| 68 | 65 |
| 69 // Track easter egg plays. | 66 // Track easter egg plays. |
| 70 bool TrackEasterEgg(); | 67 bool TrackEasterEgg(); |
| 71 | 68 |
| 72 // Execute a "Diagnose Errors" button click. | 69 // Execute a "Diagnose Errors" button click. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 85 // gin::WrappableBase | 82 // gin::WrappableBase |
| 86 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 83 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
| 87 v8::Isolate* isolate) override; | 84 v8::Isolate* isolate) override; |
| 88 | 85 |
| 89 base::WeakPtr<Delegate> delegate_; | 86 base::WeakPtr<Delegate> delegate_; |
| 90 | 87 |
| 91 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController); | 88 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController); |
| 92 }; | 89 }; |
| 93 | 90 |
| 94 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ | 91 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ |
| OLD | NEW |