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

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.h

Issue 384853002: Add notification of data reduction proxy field trial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
(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 // Configures an InfoBar with no buttons that stays visible until it is
18 // explicitly dismissed. This InfoBar is suitable for displaying a message
19 // and a link, and is used only by an Android field trial.
20 class DataReductionProxyInfoBarDelegate : public ConfirmInfoBarDelegate {
21 public:
22 // Creates the InfoBar and adds it to the provided |web_contents|.
23 static void Create(content::WebContents* web_contents);
24
25 virtual ~DataReductionProxyInfoBarDelegate();
26
27 private:
28 DataReductionProxyInfoBarDelegate();
29
30 // Returns a Data Reduction Proxy infobar that owns |delegate|.
31 static scoped_ptr<infobars::InfoBar> CreateInfoBar(
32 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate);
33
34 // ConfirmInfoBarDelegate
35 virtual base::string16 GetMessageText() const OVERRIDE;
36 virtual int GetButtons() const OVERRIDE;
37 virtual bool ShouldExpire(const NavigationDetails& details) const OVERRIDE;
38
39 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBarDelegate);
40 };
41
42 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698