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

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

Issue 1442433003: Add "Show saved copy" button in dino page when there's offline copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update button color for "Show all saved pages" per UI review Created 5 years 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 "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
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
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_
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