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

Unified Diff: ppapi/proxy/image_data.h

Issue 6334016: Refactor PPAPI proxy resource handling to maintain which host they came from,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « ppapi/proxy/host_var_serialization_rules.cc ('k') | ppapi/proxy/image_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/image_data.h
===================================================================
--- ppapi/proxy/image_data.h (revision 72840)
+++ ppapi/proxy/image_data.h (working copy)
@@ -1,49 +0,0 @@
-// Copyright (c) 2010 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 PPAPI_PROXY_IMAGE_DATA_H_
-#define PPAPI_PROXY_IMAGE_DATA_H_
-
-#include "base/shared_memory.h"
-#include "ppapi/c/pp_instance.h"
-#include "ppapi/c/ppb_image_data.h"
-#include "ppapi/proxy/plugin_resource.h"
-#include "ppapi/proxy/serialized_structs.h"
-#include "ppapi/shared_impl/image_data_impl.h"
-
-namespace pp {
-namespace proxy {
-
-class ImageData : public PluginResource,
- public pp::shared_impl::ImageDataImpl {
- public:
- ImageData(PP_Instance instance,
- const PP_ImageDataDesc& desc,
- ImageHandle handle);
- virtual ~ImageData();
-
- // Resource overrides.
- virtual ImageData* AsImageData();
-
- void* Map();
- void Unmap();
-
- const PP_ImageDataDesc& desc() const { return desc_; }
-
- static const ImageHandle NullHandle;
- static ImageHandle HandleFromInt(int32_t i);
-
- private:
- PP_ImageDataDesc desc_;
- ImageHandle handle_;
-
- void* mapped_data_;
-
- DISALLOW_COPY_AND_ASSIGN(ImageData);
-};
-
-} // namespace proxy
-} // namespace pp
-
-#endif // PPAPI_PROXY_IMAGE_DATA_H_
« no previous file with comments | « ppapi/proxy/host_var_serialization_rules.cc ('k') | ppapi/proxy/image_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698