Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: chrome/renderer/net/net_error_page_controller.h

Issue 1214303003: Add UMA histograms for Google cached copy experiment on network error interstitial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix NetErrorHelperCore unittest Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/error_page/renderer/net_error_helper_core.h" 9 #include "components/error_page/renderer/net_error_helper_core.h"
10 #include "content/public/renderer/render_frame_observer.h" 10 #include "content/public/renderer/render_frame_observer.h"
(...skipping 25 matching lines...) Expand all
36 36
37 // Execute a "Reload" button click. 37 // Execute a "Reload" button click.
38 bool ReloadButtonClick(); 38 bool ReloadButtonClick();
39 39
40 // Execute a "Details" button click. 40 // Execute a "Details" button click.
41 bool DetailsButtonClick(); 41 bool DetailsButtonClick();
42 42
43 // Track easter egg plays. 43 // Track easter egg plays.
44 bool TrackEasterEgg(); 44 bool TrackEasterEgg();
45 45
46 // Track "Show cached copy/page" button clicks.
47 bool TrackCachedCopyButtonClick(bool is_default_label);
48
46 // Track a click when the page has suggestions from the navigation correction 49 // Track a click when the page has suggestions from the navigation correction
47 // service. 50 // service.
48 bool TrackClick(const gin::Arguments& args); 51 bool TrackClick(const gin::Arguments& args);
49 52
50 // Used internally by other button click methods. 53 // Used internally by other button click methods.
51 bool ButtonClick(error_page::NetErrorHelperCore::Button button); 54 bool ButtonClick(error_page::NetErrorHelperCore::Button button);
52 55
53 // gin::WrappableBase 56 // gin::WrappableBase
54 gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 57 gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
55 v8::Isolate* isolate) override; 58 v8::Isolate* isolate) override;
56 59
57 // RenderFrameObserver. Overridden to avoid being destroyed when RenderFrame 60 // RenderFrameObserver. Overridden to avoid being destroyed when RenderFrame
58 // goes away; NetErrorPageController objects are owned by the JS 61 // goes away; NetErrorPageController objects are owned by the JS
59 // garbage collector. 62 // garbage collector.
60 void OnDestruct() override; 63 void OnDestruct() override;
61 64
62 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController); 65 DISALLOW_COPY_AND_ASSIGN(NetErrorPageController);
63 }; 66 };
64 67
65 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_ 68 #endif // CHROME_RENDERER_NET_NET_ERROR_PAGE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/net/net_error_helper.cc ('k') | chrome/renderer/net/net_error_page_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698