OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_ | |
6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "components/infobars/core/confirm_infobar_delegate.h" | |
11 #include "components/infobars/core/infobar_delegate.h" | |
12 | |
13 namespace content { | |
14 class WebContents; | |
15 } | |
16 | |
17 class DataReductionProxyInfoBarDelegate : public ConfirmInfoBarDelegate { | |
marq (ping after 24h)
2014/07/11 16:16:11
Needs a class comment, especially in this case whe
bengr
2014/07/11 21:39:42
Done.
| |
18 public: | |
19 static void Create(content::WebContents* web_contents); | |
marq (ping after 24h)
2014/07/11 16:16:11
Needs a method comment.
bengr
2014/07/11 21:39:42
Done.
| |
20 | |
21 | |
marq (ping after 24h)
2014/07/11 16:16:11
Spurious newline.
bengr
2014/07/11 21:39:42
Done.
| |
22 virtual ~DataReductionProxyInfoBarDelegate(); | |
23 | |
24 private: | |
25 DataReductionProxyInfoBarDelegate(); | |
26 | |
27 // Returns a Data Reduction Proxy infobar that owns |delegate|. | |
28 static scoped_ptr<infobars::InfoBar> CreateInfoBar( | |
29 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate); | |
30 | |
31 // ConfirmInfoBarDelegate | |
32 virtual base::string16 GetMessageText() const OVERRIDE; | |
33 virtual int GetButtons() const OVERRIDE; | |
34 virtual bool ShouldExpire(const NavigationDetails& details) const OVERRIDE; | |
35 | |
36 | |
marq (ping after 24h)
2014/07/11 16:16:11
Extra line.
bengr
2014/07/11 21:39:42
Done.
| |
37 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBarDelegate); | |
38 }; | |
39 | |
40 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_ | |
OLD | NEW |