OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_COMMON_PERMISSIONS_SETTINGS_OVERRIDE_PERMISSION_H_ | 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_SETTINGS_OVERRIDE_PERMISSION_H_ |
6 #define EXTENSIONS_COMMON_PERMISSIONS_SETTINGS_OVERRIDE_PERMISSION_H_ | 6 #define EXTENSIONS_COMMON_PERMISSIONS_SETTINGS_OVERRIDE_PERMISSION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "extensions/common/permissions/api_permission.h" | 10 #include "extensions/common/permissions/api_permission.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 bool Contains(const APIPermission* rhs) const override; | 26 bool Contains(const APIPermission* rhs) const override; |
27 bool Equal(const APIPermission* rhs) const override; | 27 bool Equal(const APIPermission* rhs) const override; |
28 bool FromValue(const base::Value* value, | 28 bool FromValue(const base::Value* value, |
29 std::string* error, | 29 std::string* error, |
30 std::vector<std::string>* unhandled_permissions) override; | 30 std::vector<std::string>* unhandled_permissions) override; |
31 scoped_ptr<base::Value> ToValue() const override; | 31 scoped_ptr<base::Value> ToValue() const override; |
32 APIPermission* Clone() const override; | 32 APIPermission* Clone() const override; |
33 APIPermission* Diff(const APIPermission* rhs) const override; | 33 APIPermission* Diff(const APIPermission* rhs) const override; |
34 APIPermission* Union(const APIPermission* rhs) const override; | 34 APIPermission* Union(const APIPermission* rhs) const override; |
35 APIPermission* Intersect(const APIPermission* rhs) const override; | 35 APIPermission* Intersect(const APIPermission* rhs) const override; |
36 void Write(IPC::Message* m) const override; | 36 void Write(base::Pickle* m) const override; |
37 bool Read(const IPC::Message* m, base::PickleIterator* iter) override; | 37 bool Read(const base::Pickle* m, base::PickleIterator* iter) override; |
38 void Log(std::string* log) const override; | 38 void Log(std::string* log) const override; |
39 | 39 |
40 private: | 40 private: |
41 std::string setting_value_; | 41 std::string setting_value_; |
42 }; | 42 }; |
43 | 43 |
44 } // namespace extensions | 44 } // namespace extensions |
45 | 45 |
46 #endif // EXTENSIONS_COMMON_PERMISSIONS_SETTINGS_OVERRIDE_PERMISSION_H_ | 46 #endif // EXTENSIONS_COMMON_PERMISSIONS_SETTINGS_OVERRIDE_PERMISSION_H_ |
OLD | NEW |