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

Side by Side Diff: chrome/browser/custom_handlers/protocol_handler_registry.h

Issue 10963004: Fix registerProtocolHandler OS registration on Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed blank line Created 8 years, 3 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) 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_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_
6 #define CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 : public ShellIntegration::DefaultWebClientObserver { 36 : public ShellIntegration::DefaultWebClientObserver {
37 public: 37 public:
38 explicit DefaultClientObserver(ProtocolHandlerRegistry* registry); 38 explicit DefaultClientObserver(ProtocolHandlerRegistry* registry);
39 virtual ~DefaultClientObserver(); 39 virtual ~DefaultClientObserver();
40 40
41 // Get response from the worker regarding whether Chrome is the default 41 // Get response from the worker regarding whether Chrome is the default
42 // handler for the protocol. 42 // handler for the protocol.
43 virtual void SetDefaultWebClientUIState( 43 virtual void SetDefaultWebClientUIState(
44 ShellIntegration::DefaultWebClientUIState state) OVERRIDE; 44 ShellIntegration::DefaultWebClientUIState state) OVERRIDE;
45 45
46 virtual bool IsInteractiveSetDefaultPermitted() OVERRIDE;
47
46 // Give the observer a handle to the worker, so we can find out the protocol 48 // Give the observer a handle to the worker, so we can find out the protocol
47 // when we're called and also tell the worker if we get deleted. 49 // when we're called and also tell the worker if we get deleted.
48 void SetWorker(ShellIntegration::DefaultProtocolClientWorker* worker); 50 void SetWorker(ShellIntegration::DefaultProtocolClientWorker* worker);
49 51
50 protected: 52 protected:
51 ShellIntegration::DefaultProtocolClientWorker* worker_; 53 ShellIntegration::DefaultProtocolClientWorker* worker_;
52 54
53 private: 55 private:
54 virtual bool IsOwnedByWorker() OVERRIDE; 56 virtual bool IsOwnedByWorker() OVERRIDE;
55 57
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 285
284 // Copy of registry data for use on the IO thread. Changes to the registry 286 // Copy of registry data for use on the IO thread. Changes to the registry
285 // are posted to the IO thread where updates are applied to this object. 287 // are posted to the IO thread where updates are applied to this object.
286 scoped_refptr<Core> core_; 288 scoped_refptr<Core> core_;
287 289
288 DefaultClientObserverList default_client_observers_; 290 DefaultClientObserverList default_client_observers_;
289 291
290 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry); 292 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry);
291 }; 293 };
292 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ 294 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/custom_handlers/protocol_handler_registry.cc » ('j') | chrome/installer/util/shell_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698