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

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: Round of comment #1 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
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 16 matching lines...) Expand all
27 const base::Closure& on_finished_callback); 27 const base::Closure& on_finished_callback);
28 28
29 // Initiates an OS shell flow which (if followed by the user) should set 29 // Initiates an OS shell flow which (if followed by the user) should set
30 // Chrome as the default handler for |protocol|. Returns false if the flow 30 // Chrome as the default handler for |protocol|. Returns false if the flow
31 // cannot be initialized, if it is not supported (introduced for Windows 8) 31 // cannot be initialized, if it is not supported (introduced for Windows 8)
32 // or if the user cancels the operation. This is a blocking call and requires 32 // or if the user cancels the operation. This is a blocking call and requires
33 // a FILE thread. If Chrome is already default for |protocol|, no interactive 33 // a FILE thread. If Chrome is already default for |protocol|, no interactive
34 // dialog will be shown and this method returns true. 34 // dialog will be shown and this method returns true.
35 bool SetAsDefaultProtocolClientUsingIntentPicker(const std::string& protocol); 35 bool SetAsDefaultProtocolClientUsingIntentPicker(const std::string& protocol);
36 36
37 // Initiates the interaction with the system settings for the default handler of
38 // |protocol|. The function takes care of making sure |on_finished_callback|
39 // will get called exactly once when the interaction is finished.
40 void SetAsDefaultProtocolClientUsingSystemSettings(
41 const std::string& protocol,
42 const base::Closure& on_finished_callback);
43
37 } // namespace win 44 } // namespace win
38 } // namespace shell_integration 45 } // namespace shell_integration
39 46
40 #endif // CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_ 47 #endif // CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698