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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 static void Install(content::RenderFrame* render_frame, | 47 static void Install(content::RenderFrame* render_frame, |
48 base::WeakPtr<Delegate> delegate); | 48 base::WeakPtr<Delegate> delegate); |
49 | 49 |
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 "Show saved pages" button click. | 57 // Execute a button click to show the list of all offline pages. |
58 bool ShowSavedPagesButtonClick(); | 58 bool ShowOfflinePagesButtonClick(); |
| 59 |
| 60 // Execute a button click to show the offline copy of this page. |
| 61 bool ShowOfflineCopyButtonClick(); |
59 | 62 |
60 // Execute a "Reload" button click. | 63 // Execute a "Reload" button click. |
61 bool ReloadButtonClick(); | 64 bool ReloadButtonClick(); |
62 | 65 |
63 // Execute a "Details" button click. | 66 // Execute a "Details" button click. |
64 bool DetailsButtonClick(); | 67 bool DetailsButtonClick(); |
65 | 68 |
66 // Track easter egg plays. | 69 // Track easter egg plays. |
67 bool TrackEasterEgg(); | 70 bool TrackEasterEgg(); |
68 | 71 |
(...skipping 13 matching lines...) Expand all Loading... |
82 // gin::WrappableBase | 85 // gin::WrappableBase |
83 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 86 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
84 v8::Isolate* isolate) override; | 87 v8::Isolate* isolate) override; |
85 | 88 |
86 base::WeakPtr<Delegate> delegate_; | 89 base::WeakPtr<Delegate> delegate_; |
87 | 90 |
88 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController); | 91 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController); |
89 }; | 92 }; |
90 | 93 |
91 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ | 94 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ |
OLD | NEW |