diff options
Diffstat (limited to 'chromium/weblayer/browser/default_search_engine.h')
-rw-r--r-- | chromium/weblayer/browser/default_search_engine.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/chromium/weblayer/browser/default_search_engine.h b/chromium/weblayer/browser/default_search_engine.h deleted file mode 100644 index 930db3d63f8..00000000000 --- a/chromium/weblayer/browser/default_search_engine.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright 2020 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 WEBLAYER_BROWSER_DEFAULT_SEARCH_ENGINE_H_ -#define WEBLAYER_BROWSER_DEFAULT_SEARCH_ENGINE_H_ - -#include "components/content_settings/core/common/content_settings.h" - -namespace content { -class BrowserContext; -} - -namespace url { -class Origin; -} - -namespace weblayer { -const url::Origin& GetDseOrigin(); - -// Returns whether permissions for |type| and |origin| are controlled by -// WebLayer's default search engine logic. This only applies to the GEOLOCATION -// permission, which will be force allowed and controlled by the client app's -// system level location permissions. -bool IsPermissionControlledByDse(ContentSettingsType type, - const url::Origin& origin); - -// Returns whether the provided |origin| matches the Weblayer's default search -// engine logic. -bool IsDseOrigin(const url::Origin& origin); - -// Resets all permissions managed by WebLayer for the default search engine. -// TODO(crbug.com/1063433): If this logic gets more complicated consider -// refactoring SearchPermissionsService to be used in WebLayer. -void ResetDsePermissions(content::BrowserContext* browser_context); - -} // namespace weblayer - -#endif // WEBLAYER_BROWSER_DEFAULT_SEARCH_ENGINE_H_ |