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

Unified Diff: chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h

Issue 2611583002: Move files for search geolocation into their own folder. (Closed)
Patch Set: Rebase Created 3 years, 12 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/android/search_geolocation_disclosure_infobar_delegate.h
diff --git a/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h b/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h
deleted file mode 100644
index e3a9cb060e46f7528b52d206e6779ac6b8e7b1ee..0000000000000000000000000000000000000000
--- a/chrome/browser/android/search_geolocation_disclosure_infobar_delegate.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright 2016 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_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_
-
-#include <stddef.h>
-
-#include <memory>
-#include <string>
-#include <utility>
-#include <vector>
-
-#include "base/logging.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "base/strings/string16.h"
-#include "base/time/time.h"
-#include "build/build_config.h"
-#include "components/infobars/core/infobar_delegate.h"
-#include "ui/gfx/range/range.h"
-#include "url/gurl.h"
-
-class PrefService;
-
-namespace content {
-class WebContents;
-}
-
-class SearchGeolocationDisclosureInfoBarDelegate
- : public infobars::InfoBarDelegate {
- public:
- ~SearchGeolocationDisclosureInfoBarDelegate() override;
-
- // Create and show the infobar.
- static void Create(content::WebContents* web_contents,
- const GURL& search_url);
-
- // Determine if there is a search geolocation disclosure infobar already open.
- static bool IsSearchGeolocationDisclosureOpen(
- content::WebContents* web_contents);
-
- void RecordSettingsClicked();
-
- // The translated text of the message to display.
- const base::string16& message_text() const { return message_text_; }
-
- // The range of the message that should be a link.
- const gfx::Range& inline_link_range() const { return inline_link_range_; }
-
- // The search URL that caused this infobar to be displayed.
- const GURL& search_url() const { return search_url_; }
-
- private:
- enum class DisclosureResult;
-
- explicit SearchGeolocationDisclosureInfoBarDelegate(
- content::WebContents* web_contents,
- const GURL& search_url);
-
- // InfoBarDelegate:
- void InfoBarDismissed() override;
- Type GetInfoBarType() const override;
- infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
- int GetIconId() const override;
-
- // The translated text of the message to display.
- base::string16 message_text_;
-
- // The range of the message that should be a link.
- gfx::Range inline_link_range_;
-
- // The search URL that caused this infobar to be displayed.
- GURL search_url_;
-
- // The pref service to record prefs in.
- PrefService* pref_service_;
-
- // The result of showing the disclosure.
- DisclosureResult result_;
-
- // The time the infobar was created.
- base::Time creation_time_;
-
- DISALLOW_COPY_AND_ASSIGN(SearchGeolocationDisclosureInfoBarDelegate);
-};
-
-#endif // CHROME_BROWSER_ANDROID_SEARCH_GEOLOCATION_DISCLOSURE_INFOBAR_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698