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

Side by Side Diff: ppapi/shared_impl/ppb_url_request_info_shared.h

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 std::vector<BodyItem> body; 83 std::vector<BodyItem> body;
84 84
85 // If you add more stuff here, be sure to modify the serialization rules in 85 // If you add more stuff here, be sure to modify the serialization rules in
86 // ppapi_messages.h 86 // ppapi_messages.h
87 }; 87 };
88 88
89 class PPAPI_SHARED_EXPORT PPB_URLRequestInfo_Shared 89 class PPAPI_SHARED_EXPORT PPB_URLRequestInfo_Shared
90 : public ::ppapi::Resource, 90 : public ::ppapi::Resource,
91 public ::ppapi::thunk::PPB_URLRequestInfo_API { 91 public ::ppapi::thunk::PPB_URLRequestInfo_API {
92 public: 92 public:
93 // This constructor initializes the object as a proxy object with the given 93 PPB_URLRequestInfo_Shared(ResourceObjectType type,
94 // host resource. 94 PP_Instance instance,
95 PPB_URLRequestInfo_Shared(const HostResource& host_resource, 95 const PPB_URLRequestInfo_Data& data);
96 const PPB_URLRequestInfo_Data& data);
97
98 ~PPB_URLRequestInfo_Shared(); 96 ~PPB_URLRequestInfo_Shared();
99 97
100 // Resource overrides. 98 // Resource overrides.
101 virtual thunk::PPB_URLRequestInfo_API* AsPPB_URLRequestInfo_API() OVERRIDE; 99 virtual thunk::PPB_URLRequestInfo_API* AsPPB_URLRequestInfo_API() OVERRIDE;
102 100
103 // PPB_URLRequestInfo_API implementation. 101 // PPB_URLRequestInfo_API implementation.
104 virtual PP_Bool SetProperty(PP_URLRequestProperty property, 102 virtual PP_Bool SetProperty(PP_URLRequestProperty property,
105 PP_Var var) OVERRIDE; 103 PP_Var var) OVERRIDE;
106 virtual PP_Bool AppendDataToBody(const void* data, uint32_t len) OVERRIDE; 104 virtual PP_Bool AppendDataToBody(const void* data, uint32_t len) OVERRIDE;
107 virtual PP_Bool AppendFileToBody( 105 virtual PP_Bool AppendFileToBody(
(...skipping 19 matching lines...) Expand all
127 125
128 private: 126 private:
129 PPB_URLRequestInfo_Data data_; 127 PPB_URLRequestInfo_Data data_;
130 128
131 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_URLRequestInfo_Shared); 129 DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_URLRequestInfo_Shared);
132 }; 130 };
133 131
134 } // namespace ppapi 132 } // namespace ppapi
135 133
136 #endif // PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_ 134 #endif // PPAPI_SHARED_IMPL_PPB_URL_REQUEST_INFO_SHARED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698