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

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: Sky comments + refactoring 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
« no previous file with comments | « chrome/browser/shell_integration_mac.mm ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..acca8954f90651618a41630f94d7880225800ad4
--- /dev/null
+++ b/chrome/browser/shell_integration_win.h
@@ -0,0 +1,42 @@
+// 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.h"
sky 2016/04/11 15:06:55 nit: callback_forward.h
Patrick Monette 2016/04/11 15:48:22 Done.
+#include "base/files/file_path.h"
sky 2016/04/11 15:06:55 nit: this include and the next aren't needed.
Patrick Monette 2016/04/11 15:48:22 Done.
+#include "base/strings/string16.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_
« no previous file with comments | « chrome/browser/shell_integration_mac.mm ('k') | chrome/browser/shell_integration_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698