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

Unified Diff: chrome/browser/shell_integration_win.h

Issue 1832853003: DefaultBrowserWorker now fully supports opening the settings for Win10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/shell_integration_win.h
diff --git a/chrome/browser/shell_integration_win.h b/chrome/browser/shell_integration_win.h
new file mode 100644
index 0000000000000000000000000000000000000000..34651e1d23c6788946502e25dd1c7f5a7e577591
--- /dev/null
+++ b/chrome/browser/shell_integration_win.h
@@ -0,0 +1,40 @@
+// Copyright 2016 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 CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
+#define CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_
+
+#include <string>
+
+#include "base/callback_forward.h"
+
+namespace shell_integration {
+namespace win {
+
+// Initiates an OS shell flow which (if followed by the user) should set
+// Chrome as the default browser. Returns false if the flow cannot be
+// initialized, if it is not supported (introduced for Windows 8) or if the
+// user cancels the operation. This is a blocking call and requires a FILE
+// thread. If Chrome is already default browser, no interactive dialog will be
+// shown and this method returns true.
+bool SetAsDefaultBrowserUsingIntentPicker();
+
+// Initiates the interaction with the system settings for the default browser.
+// The function takes care of making sure |on_finished_callback| will get called
+// exactly once when the interaction is finished.
+void SetAsDefaultBrowserUsingSystemSettings(
+ const base::Closure& on_finished_callback);
+
+// Initiates an OS shell flow which (if followed by the user) should set
+// Chrome as the default handler for |protocol|. Returns false if the flow
+// cannot be initialized, if it is not supported (introduced for Windows 8)
+// or if the user cancels the operation. This is a blocking call and requires
+// a FILE thread. If Chrome is already default for |protocol|, no interactive
+// dialog will be shown and this method returns true.
+bool SetAsDefaultProtocolClientUsingIntentPicker(const std::string& protocol);
+
+} // namespace win
+} // namespace shell_integration
+
+#endif // CHROME_BROWSER_SHELL_INTEGRATION_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698