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

Unified Diff: chrome/browser/tab_contents/link_infobar_delegate.h

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/link_infobar_delegate.h
diff --git a/chrome/browser/tab_contents/link_infobar_delegate.h b/chrome/browser/tab_contents/link_infobar_delegate.h
deleted file mode 100644
index ab7cbf640c15826f1ba32fc4616349164e40c56f..0000000000000000000000000000000000000000
--- a/chrome/browser/tab_contents/link_infobar_delegate.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/string16.h"
-#include "chrome/browser/infobars/infobar_delegate.h"
-
-class InfoBarTabHelper;
-
-// An interface derived from InfoBarDelegate implemented by objects wishing to
-// control a LinkInfoBar.
-class LinkInfoBarDelegate : public InfoBarDelegate {
- public:
- // Returns the message string to be displayed in the InfoBar. |link_offset|
- // is the position where the link should be inserted.
- virtual string16 GetMessageTextWithOffset(size_t* link_offset) const = 0;
-
- // Returns the text of the link to be displayed.
- virtual string16 GetLinkText() const = 0;
-
- // Called when the Link is clicked. The |disposition| specifies how the
- // resulting document should be loaded (based on the event flags present when
- // the link was clicked). If this function returns true, the infobar is then
- // immediately closed. Subclasses MUST NOT return true if in handling this
- // call something triggers the infobar to begin closing.
- virtual bool LinkClicked(WindowOpenDisposition disposition);
-
- protected:
- explicit LinkInfoBarDelegate(InfoBarTabHelper* infobar_helper);
- virtual ~LinkInfoBarDelegate();
-
- private:
- // InfoBarDelegate:
- virtual InfoBar* CreateInfoBar(InfoBarTabHelper* infobar_helper) OVERRIDE;
- virtual LinkInfoBarDelegate* AsLinkInfoBarDelegate() OVERRIDE;
-
- DISALLOW_COPY_AND_ASSIGN(LinkInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_TAB_CONTENTS_LINK_INFOBAR_DELEGATE_H_
« no previous file with comments | « chrome/browser/tab_contents/insecure_content_infobar_delegate.cc ('k') | chrome/browser/tab_contents/link_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698