OLD | NEW |
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 Loading... |
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 |
OLD | NEW |