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

Unified Diff: chrome/browser/android/banners/app_banner_settings_helper.h

Issue 884373002: Update content setting for app banners to store more information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac test failure 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: chrome/browser/android/banners/app_banner_settings_helper.h
diff --git a/chrome/browser/android/banners/app_banner_settings_helper.h b/chrome/browser/android/banners/app_banner_settings_helper.h
deleted file mode 100644
index d1173a8866a0ead9da972b497e5645734a17311a..0000000000000000000000000000000000000000
--- a/chrome/browser/android/banners/app_banner_settings_helper.h
+++ /dev/null
@@ -1,35 +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 CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
-#define CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_SETTINGS_HELPER_H_
-
-#include <string>
-
-#include "base/macros.h"
-
-namespace content {
-class WebContents;
-} // namesapce content
-
-class GURL;
-
-// Utility class for reading and updating ContentSettings for app banners.
-class AppBannerSettingsHelper {
- public:
- // Checks if a URL is allowed to show a banner for the given package.
- static bool IsAllowed(content::WebContents* web_contents,
- const GURL& origin_url,
- const std::string& package_name);
-
- // Blocks a URL from showing a banner for the given package.
- static void Block(content::WebContents* web_contents,
- const GURL& origin_url,
- const std::string& package_name);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(AppBannerSettingsHelper);
-};
-
-#endif // CHROME_BROWSER_ANDROID_BANNERS_APP_BANNER_SETTINGS_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698