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

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

Issue 10539169: Prototype version of the first-run dialog for Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed non-windows compilation errors. Created 8 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 | 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 class DefaultClientObserver 35 class DefaultClientObserver
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,
45 ShellIntegration::SetDefaultWebClientResult unused_result) OVERRIDE;
45 46
46 // Give the observer a handle to the worker, so we can find out the protocol 47 // 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. 48 // when we're called and also tell the worker if we get deleted.
48 void SetWorker(ShellIntegration::DefaultProtocolClientWorker* worker); 49 void SetWorker(ShellIntegration::DefaultProtocolClientWorker* worker);
49 50
50 protected: 51 protected:
51 ShellIntegration::DefaultProtocolClientWorker* worker_; 52 ShellIntegration::DefaultProtocolClientWorker* worker_;
52 53
53 private: 54 private:
54 virtual bool IsOwnedByWorker() OVERRIDE { return true; } 55 virtual bool IsOwnedByWorker() OVERRIDE { return true; }
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 bool is_loaded_; 290 bool is_loaded_;
290 291
291 DefaultClientObserverList default_client_observers_; 292 DefaultClientObserverList default_client_observers_;
292 293
293 // Copy of default_handlers_ that is only accessed on the IO thread. 294 // Copy of default_handlers_ that is only accessed on the IO thread.
294 ProtocolHandlerMap default_handlers_io_; 295 ProtocolHandlerMap default_handlers_io_;
295 296
296 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry); 297 DISALLOW_COPY_AND_ASSIGN(ProtocolHandlerRegistry);
297 }; 298 };
298 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_ 299 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_PROTOCOL_HANDLER_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698