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

Unified Diff: components/google/core/browser/google_url_tracker_map_entry.h

Issue 808253006: Remove the GoogleURLTracker infobar functionality entirely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 11 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: components/google/core/browser/google_url_tracker_map_entry.h
diff --git a/components/google/core/browser/google_url_tracker_map_entry.h b/components/google/core/browser/google_url_tracker_map_entry.h
deleted file mode 100644
index b19b224c1f26042f4318f2154a03ccb54c8c4533..0000000000000000000000000000000000000000
--- a/components/google/core/browser/google_url_tracker_map_entry.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 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 COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_URL_TRACKER_MAP_ENTRY_H_
-#define COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_URL_TRACKER_MAP_ENTRY_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "components/google/core/browser/google_url_tracker_infobar_delegate.h"
-#include "components/google/core/browser/google_url_tracker_navigation_helper.h"
-#include "components/infobars/core/infobar_manager.h"
-
-class GoogleURLTracker;
-
-namespace infobars {
-class InfoBarManager;
-}
-
-class GoogleURLTrackerMapEntry : public infobars::InfoBarManager::Observer {
- public:
- GoogleURLTrackerMapEntry(
- GoogleURLTracker* google_url_tracker,
- infobars::InfoBarManager* infobar_manager,
- scoped_ptr<GoogleURLTrackerNavigationHelper> navigation_helper);
- ~GoogleURLTrackerMapEntry() override;
-
- bool has_infobar_delegate() const { return !!infobar_delegate_; }
- GoogleURLTrackerInfoBarDelegate* infobar_delegate() {
- return infobar_delegate_;
- }
- void SetInfoBarDelegate(GoogleURLTrackerInfoBarDelegate* infobar_delegate);
-
- GoogleURLTrackerNavigationHelper* navigation_helper() {
- // This object gives ownership of |navigation_helper_| to the infobar
- // delegate in SetInfoBarDelegate().
- return has_infobar_delegate() ?
- infobar_delegate_->navigation_helper() : navigation_helper_.get();
- }
-
- const infobars::InfoBarManager* infobar_manager() const {
- return infobar_manager_;
- }
-
- void Close(bool redo_search);
-
- private:
- friend class GoogleURLTrackerTest;
-
- // infobars::InfoBarManager::Observer:
- void OnInfoBarRemoved(infobars::InfoBar* infobar, bool animate) override;
- void OnManagerShuttingDown(infobars::InfoBarManager* manager) override;
-
- GoogleURLTracker* const google_url_tracker_;
- infobars::InfoBarManager* const infobar_manager_;
- GoogleURLTrackerInfoBarDelegate* infobar_delegate_;
- scoped_ptr<GoogleURLTrackerNavigationHelper> navigation_helper_;
- bool observing_;
-
- DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerMapEntry);
-};
-
-#endif // COMPONENTS_GOOGLE_CORE_BROWSER_GOOGLE_URL_TRACKER_MAP_ENTRY_H_

Powered by Google App Engine
This is Rietveld 408576698