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

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

Issue 1974153002: Add an experiment for the default browser infobar on Windows 10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting comments Created 4 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 bool check_default_should_report_success_ = false; 210 bool check_default_should_report_success_ = false;
211 211
212 DISALLOW_COPY_AND_ASSIGN(DefaultWebClientWorker); 212 DISALLOW_COPY_AND_ASSIGN(DefaultWebClientWorker);
213 }; 213 };
214 214
215 // Worker for checking and setting the default browser. 215 // Worker for checking and setting the default browser.
216 class DefaultBrowserWorker : public DefaultWebClientWorker { 216 class DefaultBrowserWorker : public DefaultWebClientWorker {
217 public: 217 public:
218 explicit DefaultBrowserWorker(const DefaultWebClientWorkerCallback& callback); 218 explicit DefaultBrowserWorker(const DefaultWebClientWorkerCallback& callback);
219 219
220 private: 220 protected:
221 ~DefaultBrowserWorker() override; 221 ~DefaultBrowserWorker() override;
222 222
223 private:
223 // Check if Chrome is the default browser. 224 // Check if Chrome is the default browser.
224 DefaultWebClientState CheckIsDefaultImpl() override; 225 DefaultWebClientState CheckIsDefaultImpl() override;
225 226
226 // Set Chrome as the default browser. 227 // Set Chrome as the default browser.
227 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; 228 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override;
228 229
229 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker); 230 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker);
230 }; 231 };
231 232
232 // Worker for checking and setting the default client application 233 // Worker for checking and setting the default client application
(...skipping 18 matching lines...) Expand all
251 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override; 252 void SetAsDefaultImpl(const base::Closure& on_finished_callback) override;
252 253
253 std::string protocol_; 254 std::string protocol_;
254 255
255 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 256 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
256 }; 257 };
257 258
258 } // namespace shell_integration 259 } // namespace shell_integration
259 260
260 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 261 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698