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

Unified Diff: chrome/common/extensions/permissions/media_galleries_permission_data.h

Issue 201203006: Move basic API permissions code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move moar things Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/permissions/media_galleries_permission_data.h
diff --git a/chrome/common/extensions/permissions/media_galleries_permission_data.h b/chrome/common/extensions/permissions/media_galleries_permission_data.h
deleted file mode 100644
index 9d13eaeebd011d53ab492515ecee8e76f5b3fa62..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/permissions/media_galleries_permission_data.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_DATA_H_
-#define CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_DATA_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "extensions/common/permissions/api_permission.h"
-
-namespace base {
-class Value;
-}
-
-namespace extensions {
-
-// A MediaGalleriesPermissionData instance represents a single part of the
-// MediaGalleriesPermission. e.g. "read" or "allAutoDetected".
-class MediaGalleriesPermissionData {
- public:
- MediaGalleriesPermissionData();
-
- // Check if |param| (which must be a MediaGalleriesPermission::CheckParam)
- // matches the encapsulated attribute.
- bool Check(const APIPermission::CheckParam* param) const;
-
- // Convert |this| into a base::Value.
- scoped_ptr<base::Value> ToValue() const;
-
- // Populate |this| from a base::Value.
- bool FromValue(const base::Value* value);
-
- bool operator<(const MediaGalleriesPermissionData& rhs) const;
- bool operator==(const MediaGalleriesPermissionData& rhs) const;
-
- std::string permission() const { return permission_; }
-
- // This accessor is provided for IPC_STRUCT_TRAITS_MEMBER. Please think
- // twice before using it for anything else.
- std::string& permission() { return permission_; }
-
- private:
- std::string permission_;
-};
-
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_PERMISSIONS_MEDIA_GALLERIES_PERMISSION_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698