OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_WEBSHARE_SHARE_TARGET_PREF_HELPER_H_ |
| 6 #define CHROME_BROWSER_WEBSHARE_SHARE_TARGET_PREF_HELPER_H_ |
| 7 |
| 8 #include "base/optional.h" |
| 9 #include "base/strings/string_piece.h" |
| 10 |
| 11 class PrefService; |
| 12 |
| 13 // Adds the Web Share target |share_target_origin| with template |url_template| |
| 14 // to |pref_service| under kWebShareVisitedTargets. If |url_template| is null, |
| 15 // this function will remove |share_target_origin| from kWebShareVisitedTargets, |
| 16 // if it is there. |
| 17 void AddShareTargetToPrefs(base::StringPiece manifest_url, |
| 18 base::Optional<std::string> url_template, |
| 19 PrefService* pref_service); |
| 20 |
| 21 #endif // CHROME_BROWSER_WEBSHARE_SHARE_TARGET_PREF_HELPER_H_ |
OLD | NEW |