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

Side by Side Diff: chrome/browser/webshare/share_target_pref_helper.h

Issue 2639463002: Add a pref name for share targets, and store their manifest data. (Closed)
Patch Set: Remove upstream dependency Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/webshare/share_target_pref_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 UpdateShareTargetInPrefs(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_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/webshare/share_target_pref_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698