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

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

Issue 7388009: Canary versions no longer always remove protocol handlers at startup. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed up comment. Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 static bool SetAsDefaultBrowser(); 31 static bool SetAsDefaultBrowser();
32 32
33 // Sets Chrome as the default client application for the given protocol 33 // Sets Chrome as the default client application for the given protocol
34 // (only for the current user). Returns false if this operation fails. 34 // (only for the current user). Returns false if this operation fails.
35 static bool SetAsDefaultProtocolClient(const std::string& protocol); 35 static bool SetAsDefaultProtocolClient(const std::string& protocol);
36 36
37 // Returns true if the running browser can be set as the default browser. 37 // Returns true if the running browser can be set as the default browser.
38 static bool CanSetAsDefaultBrowser(); 38 static bool CanSetAsDefaultBrowser();
39 39
40 // Returns true if the running browser can be set as the default client 40 // Returns true if the running browser can be set as the default client
41 // application for the given protocol. 41 // application for specific protocols.
42 static bool CanSetAsDefaultProtocolClient(const std::string& protocol); 42 static bool CanSetAsDefaultProtocolClient();
43 43
44 // On Linux, it may not be possible to determine or set the default browser 44 // On Linux, it may not be possible to determine or set the default browser
45 // on some desktop environments or configurations. So, we use this enum and 45 // on some desktop environments or configurations. So, we use this enum and
46 // not a plain bool. (Note however that if used like a bool, this enum will 46 // not a plain bool. (Note however that if used like a bool, this enum will
47 // have reasonable behavior.) 47 // have reasonable behavior.)
48 enum DefaultWebClientState { 48 enum DefaultWebClientState {
49 NOT_DEFAULT_WEB_CLIENT = 0, 49 NOT_DEFAULT_WEB_CLIENT = 0,
50 IS_DEFAULT_WEB_CLIENT, 50 IS_DEFAULT_WEB_CLIENT,
51 UNKNOWN_DEFAULT_WEB_CLIENT = -1 51 UNKNOWN_DEFAULT_WEB_CLIENT = -1
52 }; 52 };
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // Set Chrome as the default handler for this protocol. 264 // Set Chrome as the default handler for this protocol.
265 virtual void SetAsDefault(); 265 virtual void SetAsDefault();
266 266
267 std::string protocol_; 267 std::string protocol_;
268 268
269 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 269 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
270 }; 270 };
271 }; 271 };
272 272
273 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 273 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/custom_handlers/protocol_handler_registry.cc ('k') | chrome/browser/shell_integration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698