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 "content/public/renderer/render_frame_observer.h" | 9 #include "content/public/renderer/render_frame_observer.h" |
10 #include "gin/arguments.h" | 10 #include "gin/arguments.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 // Execute a "Reload" button click. | 36 // Execute a "Reload" button click. |
37 bool ReloadButtonClick(); | 37 bool ReloadButtonClick(); |
38 | 38 |
39 // Execute a "Details" button click. | 39 // Execute a "Details" button click. |
40 bool DetailsButtonClick(); | 40 bool DetailsButtonClick(); |
41 | 41 |
42 // Track a click when the page has suggestions from the navigation correction | 42 // Track a click when the page has suggestions from the navigation correction |
43 // service. | 43 // service. |
44 bool TrackClick(const gin::Arguments& args); | 44 bool TrackClick(const gin::Arguments& args); |
45 | 45 |
| 46 // Track easter egg plays. |
| 47 void TrackEasterEgg(); |
| 48 |
46 // gin::WrappableBase | 49 // gin::WrappableBase |
47 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( | 50 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( |
48 v8::Isolate* isolate) override; | 51 v8::Isolate* isolate) override; |
49 | 52 |
50 // RenderFrameObserver. Overridden to avoid being destroyed when RenderFrame | 53 // RenderFrameObserver. Overridden to avoid being destroyed when RenderFrame |
51 // goes away; NetErrorPageController objects are owned by the JS | 54 // goes away; NetErrorPageController objects are owned by the JS |
52 // garbage collector. | 55 // garbage collector. |
53 void OnDestruct() override; | 56 void OnDestruct() override; |
54 | 57 |
55 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController); | 58 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController); |
56 }; | 59 }; |
57 | 60 |
58 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ | 61 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ |
OLD | NEW |