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

Side by Side Diff: chrome/browser/tab_contents/blocked_infobar_delegate.h

Issue 7189040: Add histogram for cancel button in blocked mixed content infobars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/tab_contents/blocked_infobar_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_TAB_CONTENTS_BLOCKED_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_BLOCKED_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_BLOCKED_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_BLOCKED_INFOBAR_DELEGATE_H_
7 7
8 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" 8 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 9 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 GURL url_; 48 GURL url_;
49 }; 49 };
50 50
51 // A subclass specific to the blocked displaying insecure content case. 51 // A subclass specific to the blocked displaying insecure content case.
52 class BlockedDisplayingInfoBarDelegate : public BlockedInfoBarDelegate { 52 class BlockedDisplayingInfoBarDelegate : public BlockedInfoBarDelegate {
53 public: 53 public:
54 explicit BlockedDisplayingInfoBarDelegate(TabContentsWrapper* wrapper); 54 explicit BlockedDisplayingInfoBarDelegate(TabContentsWrapper* wrapper);
55 private: 55 private:
56 virtual void InfoBarDismissed() OVERRIDE; 56 virtual void InfoBarDismissed() OVERRIDE;
57 virtual bool Accept() OVERRIDE; 57 virtual bool Accept() OVERRIDE;
58 virtual bool Cancel() OVERRIDE;
58 }; 59 };
59 60
60 // A subclass specific to the blocked running insecure content case. 61 // A subclass specific to the blocked running insecure content case.
61 class BlockedRunningInfoBarDelegate : public BlockedInfoBarDelegate { 62 class BlockedRunningInfoBarDelegate : public BlockedInfoBarDelegate {
62 public: 63 public:
63 explicit BlockedRunningInfoBarDelegate(TabContentsWrapper* wrapper); 64 explicit BlockedRunningInfoBarDelegate(TabContentsWrapper* wrapper);
64 virtual BlockedRunningInfoBarDelegate* 65 virtual BlockedRunningInfoBarDelegate*
65 AsBlockedRunningInfoBarDelegate() OVERRIDE; 66 AsBlockedRunningInfoBarDelegate() OVERRIDE;
66 private: 67 private:
67 virtual void InfoBarDismissed() OVERRIDE; 68 virtual void InfoBarDismissed() OVERRIDE;
68 virtual bool Accept() OVERRIDE; 69 virtual bool Accept() OVERRIDE;
70 virtual bool Cancel() OVERRIDE;
69 }; 71 };
70 72
71 #endif // CHROME_BROWSER_TAB_CONTENTS_BLOCKED_INFOBAR_DELEGATE_H_ 73 #endif // CHROME_BROWSER_TAB_CONTENTS_BLOCKED_INFOBAR_DELEGATE_H_
72 74
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/blocked_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698