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

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

Issue 1361253002: Separate the URL of an infobar link with clicking on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting Created 5 years, 2 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
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_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_
6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_ 6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/infobars/core/confirm_infobar_delegate.h" 10 #include "components/infobars/core/confirm_infobar_delegate.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // Returns a Data Reduction Proxy infobar that owns |delegate|. 35 // Returns a Data Reduction Proxy infobar that owns |delegate|.
36 static scoped_ptr<infobars::InfoBar> CreateInfoBar( 36 static scoped_ptr<infobars::InfoBar> CreateInfoBar(
37 infobars::InfoBarManager* infobar_manager, 37 infobars::InfoBarManager* infobar_manager,
38 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate); 38 scoped_ptr<DataReductionProxyInfoBarDelegate> delegate);
39 39
40 // ConfirmInfoBarDelegate 40 // ConfirmInfoBarDelegate
41 bool ShouldExpire(const NavigationDetails& details) const override; 41 bool ShouldExpire(const NavigationDetails& details) const override;
42 base::string16 GetMessageText() const override; 42 base::string16 GetMessageText() const override;
43 int GetButtons() const override; 43 int GetButtons() const override;
44 GURL GetLinkURL() const override;
44 bool LinkClicked(WindowOpenDisposition disposition) override; 45 bool LinkClicked(WindowOpenDisposition disposition) override;
45 46
46 std::string link_url_; 47 std::string link_url_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBarDelegate); 49 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyInfoBarDelegate);
49 }; 50 };
50 51
51 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_ 52 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698