| 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 // Defines the Chrome Extensions Managed Mode API relevant classes to realize | 5 // Defines the Chrome Extensions Managed Mode API relevant classes to realize |
| 6 // the API as specified in the extension API JSON. | 6 // the API as specified in the extension API JSON. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_MANAGED_MODE_MANAGED_MODE_API_H_ |
| 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_MANAGED_MODE_MANAGED_MODE_API_H_ |
| 10 | 10 |
| 11 #include "chrome/browser/extensions/extension_function.h" | 11 #include "chrome/browser/extensions/extension_function.h" |
| 12 #include "chrome/browser/prefs/pref_change_registrar.h" | 12 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
| 14 | 14 |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 namespace extensions { |
| 18 |
| 17 class ExtensionManagedModeEventRouter : public content::NotificationObserver { | 19 class ExtensionManagedModeEventRouter : public content::NotificationObserver { |
| 18 public: | 20 public: |
| 19 explicit ExtensionManagedModeEventRouter(Profile* profile); | 21 explicit ExtensionManagedModeEventRouter(Profile* profile); |
| 20 virtual ~ExtensionManagedModeEventRouter(); | 22 virtual ~ExtensionManagedModeEventRouter(); |
| 21 | 23 |
| 22 void Init(); | 24 void Init(); |
| 23 | 25 |
| 24 // content::NotificationObserver implementation: | 26 // content::NotificationObserver implementation: |
| 25 virtual void Observe(int type, | 27 virtual void Observe(int type, |
| 26 const content::NotificationSource& source, | 28 const content::NotificationSource& source, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 public: | 77 public: |
| 76 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.setPolicy") | 78 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.setPolicy") |
| 77 | 79 |
| 78 protected: | 80 protected: |
| 79 virtual ~SetPolicyFunction(); | 81 virtual ~SetPolicyFunction(); |
| 80 | 82 |
| 81 // ExtensionFunction: | 83 // ExtensionFunction: |
| 82 virtual bool RunImpl() OVERRIDE; | 84 virtual bool RunImpl() OVERRIDE; |
| 83 }; | 85 }; |
| 84 | 86 |
| 85 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ | 87 } // namespace extensions |
| 88 |
| 89 #endif // CHROME_BROWSER_EXTENSIONS_API_MANAGED_MODE_MANAGED_MODE_API_H_ |
| OLD | NEW |