| OLD | NEW |
| 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_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 const extensions::Extension* extension) override; | 100 const extensions::Extension* extension) override; |
| 101 void OnExtensionUnloaded( | 101 void OnExtensionUnloaded( |
| 102 content::BrowserContext* browser_context, | 102 content::BrowserContext* browser_context, |
| 103 const extensions::Extension* extension, | 103 const extensions::Extension* extension, |
| 104 extensions::UnloadedExtensionInfo::Reason reason) override; | 104 extensions::UnloadedExtensionInfo::Reason reason) override; |
| 105 | 105 |
| 106 // policy::PolicyService::Observer: | 106 // policy::PolicyService::Observer: |
| 107 void OnPolicyUpdated(const policy::PolicyNamespace& ns, | 107 void OnPolicyUpdated(const policy::PolicyNamespace& ns, |
| 108 const policy::PolicyMap& previous, | 108 const policy::PolicyMap& previous, |
| 109 const policy::PolicyMap& current) override; | 109 const policy::PolicyMap& current) override; |
| 110 #if defined(OS_CHROMEOS) |
| 111 static void DisablePolymerPreloadForTesting(); |
| 112 #endif // defined(OS_CHROMEOS) |
| 113 |
| 110 private: | 114 private: |
| 111 // content::NotificationObserver implementation. | 115 // content::NotificationObserver implementation. |
| 112 void Observe(int type, | 116 void Observe(int type, |
| 113 const content::NotificationSource& source, | 117 const content::NotificationSource& source, |
| 114 const content::NotificationDetails& details) override; | 118 const content::NotificationDetails& details) override; |
| 115 | 119 |
| 116 // ProfileAttributesStorage::Observer implementation. | 120 // ProfileAttributesStorage::Observer implementation. |
| 117 void OnProfileAdded(const base::FilePath& profile_path) override; | 121 void OnProfileAdded(const base::FilePath& profile_path) override; |
| 118 void OnProfileWasRemoved(const base::FilePath& profile_path, | 122 void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 119 const base::string16& profile_name) override; | 123 const base::string16& profile_name) override; |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 453 |
| 450 // Used to get WeakPtr to self for use on the UI thread. | 454 // Used to get WeakPtr to self for use on the UI thread. |
| 451 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 455 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 452 | 456 |
| 453 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 457 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 454 }; | 458 }; |
| 455 | 459 |
| 456 } // namespace options | 460 } // namespace options |
| 457 | 461 |
| 458 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 462 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |