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

Side by Side Diff: extensions/common/permissions/api_permission.cc

Issue 1977643002: Generate param traits size methods for IPC files in chrome/ (and traits it depends on). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "extensions/common/permissions/api_permission.h" 5 #include "extensions/common/permissions/api_permission.h"
6 6
7 #include "extensions/common/permissions/api_permission_set.h" 7 #include "extensions/common/permissions/api_permission_set.h"
8 #include "ui/base/l10n/l10n_util.h" 8 #include "ui/base/l10n/l10n_util.h"
9 9
10 namespace { 10 namespace {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 APIPermission* Union(const APIPermission* rhs) const override { 62 APIPermission* Union(const APIPermission* rhs) const override {
63 CHECK_EQ(info(), rhs->info()); 63 CHECK_EQ(info(), rhs->info());
64 return new SimpleAPIPermission(info()); 64 return new SimpleAPIPermission(info());
65 } 65 }
66 66
67 APIPermission* Intersect(const APIPermission* rhs) const override { 67 APIPermission* Intersect(const APIPermission* rhs) const override {
68 CHECK_EQ(info(), rhs->info()); 68 CHECK_EQ(info(), rhs->info());
69 return new SimpleAPIPermission(info()); 69 return new SimpleAPIPermission(info());
70 } 70 }
71 71
72 void GetSize(base::PickleSizer* s) const override {}
73
72 void Write(base::Pickle* m) const override {} 74 void Write(base::Pickle* m) const override {}
73 75
74 bool Read(const base::Pickle* m, base::PickleIterator* iter) override { 76 bool Read(const base::Pickle* m, base::PickleIterator* iter) override {
75 return true; 77 return true;
76 } 78 }
77 79
78 void Log(std::string* log) const override {} 80 void Log(std::string* log) const override {}
79 }; 81 };
80 82
81 } // namespace 83 } // namespace
(...skipping 27 matching lines...) Expand all
109 } 111 }
110 112
111 APIPermissionInfo::~APIPermissionInfo() { } 113 APIPermissionInfo::~APIPermissionInfo() { }
112 114
113 APIPermission* APIPermissionInfo::CreateAPIPermission() const { 115 APIPermission* APIPermissionInfo::CreateAPIPermission() const {
114 return api_permission_constructor_ ? 116 return api_permission_constructor_ ?
115 api_permission_constructor_(this) : new SimpleAPIPermission(this); 117 api_permission_constructor_(this) : new SimpleAPIPermission(this);
116 } 118 }
117 119
118 } // namespace extensions 120 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698