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

Side by Side Diff: ppapi/proxy/url_response_info_resource.h

Issue 11416363: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_
6 #define PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_ 6 #define PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/proxy/plugin_resource.h" 10 #include "ppapi/proxy/plugin_resource.h"
(...skipping 20 matching lines...) Expand all
31 virtual ~URLResponseInfoResource(); 31 virtual ~URLResponseInfoResource();
32 32
33 // Resource override. 33 // Resource override.
34 virtual PPB_URLResponseInfo_API* AsPPB_URLResponseInfo_API() OVERRIDE; 34 virtual PPB_URLResponseInfo_API* AsPPB_URLResponseInfo_API() OVERRIDE;
35 35
36 // PPB_URLResponseInfo_API implementation. 36 // PPB_URLResponseInfo_API implementation.
37 virtual PP_Var GetProperty(PP_URLResponseProperty property) OVERRIDE; 37 virtual PP_Var GetProperty(PP_URLResponseProperty property) OVERRIDE;
38 virtual PP_Resource GetBodyAsFileRef() OVERRIDE; 38 virtual PP_Resource GetBodyAsFileRef() OVERRIDE;
39 virtual URLResponseInfoData GetData() OVERRIDE; 39 virtual URLResponseInfoData GetData() OVERRIDE;
40 40
41 const URLResponseInfoData& data() const { return data_; }
42
41 private: 43 private:
42 URLResponseInfoData data_; 44 URLResponseInfoData data_;
43 45
44 // Non-zero when the load is being streamed to a file. 46 // Non-zero when the load is being streamed to a file.
45 ScopedPPResource body_as_file_ref_; 47 ScopedPPResource body_as_file_ref_;
46 48
47 DISALLOW_COPY_AND_ASSIGN(URLResponseInfoResource); 49 DISALLOW_COPY_AND_ASSIGN(URLResponseInfoResource);
48 }; 50 };
49 51
50 } // namespace proxy 52 } // namespace proxy
51 } // namespace ppapi 53 } // namespace ppapi
52 54
53 #endif // PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_ 55 #endif // PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698