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

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

Issue 1149113006: Move Pickle to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 #ifndef EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ 5 #ifndef EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_
6 #define EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ 6 #define EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 virtual APIPermission* Union(const APIPermission* rhs) const = 0; 324 virtual APIPermission* Union(const APIPermission* rhs) const = 0;
325 325
326 // Returns a new API permission which equals the intersect of this and |rhs|. 326 // Returns a new API permission which equals the intersect of this and |rhs|.
327 virtual APIPermission* Intersect(const APIPermission* rhs) const = 0; 327 virtual APIPermission* Intersect(const APIPermission* rhs) const = 0;
328 328
329 // IPC functions 329 // IPC functions
330 // Writes this into the given IPC message |m|. 330 // Writes this into the given IPC message |m|.
331 virtual void Write(IPC::Message* m) const = 0; 331 virtual void Write(IPC::Message* m) const = 0;
332 332
333 // Reads from the given IPC message |m|. 333 // Reads from the given IPC message |m|.
334 virtual bool Read(const IPC::Message* m, PickleIterator* iter) = 0; 334 virtual bool Read(const IPC::Message* m, base::PickleIterator* iter) = 0;
335 335
336 // Logs this permission. 336 // Logs this permission.
337 virtual void Log(std::string* log) const = 0; 337 virtual void Log(std::string* log) const = 0;
338 338
339 protected: 339 protected:
340 // Returns the localized permission message associated with this api. 340 // Returns the localized permission message associated with this api.
341 // Use GetMessage_ to avoid name conflict with macro GetMessage on Windows. 341 // Use GetMessage_ to avoid name conflict with macro GetMessage on Windows.
342 PermissionMessage GetMessage_() const; 342 PermissionMessage GetMessage_() const;
343 343
344 private: 344 private:
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 const char* const name_; 452 const char* const name_;
453 const int flags_; 453 const int flags_;
454 const int l10n_message_id_; 454 const int l10n_message_id_;
455 const PermissionMessage::ID message_id_; 455 const PermissionMessage::ID message_id_;
456 const APIPermissionConstructor api_permission_constructor_; 456 const APIPermissionConstructor api_permission_constructor_;
457 }; 457 };
458 458
459 } // namespace extensions 459 } // namespace extensions
460 460
461 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_ 461 #endif // EXTENSIONS_COMMON_PERMISSIONS_API_PERMISSION_H_
OLDNEW
« no previous file with comments | « extensions/common/extension_messages.h ('k') | extensions/common/permissions/manifest_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698