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

Side by Side Diff: chrome/browser/shell_integration_win.h

Issue 1896513002: Fix registerProtocolHandler implementation on Windows 8 and 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang compilation Created 4 years, 8 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/shell_integration.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 18 matching lines...) Expand all
29 const base::Closure& on_finished_callback); 29 const base::Closure& on_finished_callback);
30 30
31 // Initiates an OS shell flow which (if followed by the user) should set 31 // Initiates an OS shell flow which (if followed by the user) should set
32 // Chrome as the default handler for |protocol|. Returns false if the flow 32 // Chrome as the default handler for |protocol|. Returns false if the flow
33 // cannot be initialized, if it is not supported (introduced for Windows 8) 33 // cannot be initialized, if it is not supported (introduced for Windows 8)
34 // or if the user cancels the operation. This is a blocking call and requires 34 // or if the user cancels the operation. This is a blocking call and requires
35 // a FILE thread. If Chrome is already default for |protocol|, no interactive 35 // a FILE thread. If Chrome is already default for |protocol|, no interactive
36 // dialog will be shown and this method returns true. 36 // dialog will be shown and this method returns true.
37 bool SetAsDefaultProtocolClientUsingIntentPicker(const std::string& protocol); 37 bool SetAsDefaultProtocolClientUsingIntentPicker(const std::string& protocol);
38 38
39 // Initiates the interaction with the system settings for the default handler of
40 // |protocol|. The function takes care of making sure |on_finished_callback|
41 // will get called exactly once when the interaction is finished.
42 void SetAsDefaultProtocolClientUsingSystemSettings(
43 const std::string& protocol,
44 const base::Closure& on_finished_callback);
45
39 // Generates an application user model ID (AppUserModelId) for a given app 46 // Generates an application user model ID (AppUserModelId) for a given app
40 // name and profile path. The returned app id is in the format of 47 // name and profile path. The returned app id is in the format of
41 // "|app_name|[.<profile_id>]". "profile_id" is appended when user override 48 // "|app_name|[.<profile_id>]". "profile_id" is appended when user override
42 // the default value. 49 // the default value.
43 // Note: If the app has an installation specific suffix (e.g. on user-level 50 // Note: If the app has an installation specific suffix (e.g. on user-level
44 // Chrome installs), |app_name| should already be suffixed, this method will 51 // Chrome installs), |app_name| should already be suffixed, this method will
45 // then further suffix it with the profile id as described above. 52 // then further suffix it with the profile id as described above.
46 base::string16 GetAppModelIdForProfile(const base::string16& app_name, 53 base::string16 GetAppModelIdForProfile(const base::string16& app_name,
47 const base::FilePath& profile_path); 54 const base::FilePath& profile_path);
48 55
(...skipping 19 matching lines...) Expand all
68 int MigrateShortcutsInPathInternal(const base::FilePath& chrome_exe, 75 int MigrateShortcutsInPathInternal(const base::FilePath& chrome_exe,
69 const base::FilePath& path); 76 const base::FilePath& path);
70 77
71 // Returns the path to the Start Menu shortcut for the given Chrome. 78 // Returns the path to the Start Menu shortcut for the given Chrome.
72 base::FilePath GetStartMenuShortcut(const base::FilePath& chrome_exe); 79 base::FilePath GetStartMenuShortcut(const base::FilePath& chrome_exe);
73 80
74 } // namespace win 81 } // namespace win
75 } // namespace shell_integration 82 } // namespace shell_integration
76 83
77 #endif // CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_ 84 #endif // CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration.cc ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698