| 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_EXTENSION_MANAGED_MODE_API_H_ |
| 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ |
| 10 #pragma once | 10 #pragma once |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual ~EnterManagedModeFunction(); | 53 virtual ~EnterManagedModeFunction(); |
| 54 | 54 |
| 55 // ExtensionFunction: | 55 // ExtensionFunction: |
| 56 virtual bool RunImpl() OVERRIDE; | 56 virtual bool RunImpl() OVERRIDE; |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 // Called when we have either successfully entered managed mode or failed. | 59 // Called when we have either successfully entered managed mode or failed. |
| 60 void SendResult(bool success); | 60 void SendResult(bool success); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 |
| 64 class GetPolicyFunction : public SyncExtensionFunction { |
| 65 public: |
| 66 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.getPolicy") |
| 67 |
| 68 protected: |
| 69 virtual ~GetPolicyFunction(); |
| 70 |
| 71 // ExtensionFunction: |
| 72 virtual bool RunImpl() OVERRIDE; |
| 73 }; |
| 74 |
| 75 class SetPolicyFunction : public SyncExtensionFunction { |
| 76 public: |
| 77 DECLARE_EXTENSION_FUNCTION_NAME("managedModePrivate.setPolicy") |
| 78 |
| 79 protected: |
| 80 virtual ~SetPolicyFunction(); |
| 81 |
| 82 // ExtensionFunction: |
| 83 virtual bool RunImpl() OVERRIDE; |
| 84 }; |
| 85 |
| 63 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ | 86 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGED_MODE_API_H_ |
| OLD | NEW |