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

Side by Side Diff: webkit/plugins/ppapi/ppb_url_request_info_impl.h

Issue 7669055: Remove webkit::ppapi::Resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nulls auditeed Created 9 years, 4 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 WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
12 #include "ppapi/c/ppb_url_request_info.h" 13 #include "ppapi/c/ppb_url_request_info.h"
13 #include "ppapi/thunk/ppb_url_request_info_api.h" 14 #include "ppapi/thunk/ppb_url_request_info_api.h"
14 #include "webkit/plugins/ppapi/resource.h" 15 #include "ppapi/shared_impl/resource.h"
15 16
16 namespace WebKit { 17 namespace WebKit {
17 class WebFrame; 18 class WebFrame;
18 class WebURLRequest; 19 class WebURLRequest;
19 } 20 }
20 21
21 namespace webkit { 22 namespace webkit {
22 namespace ppapi { 23 namespace ppapi {
23 24
24 class PPB_FileRef_Impl; 25 class PPB_FileRef_Impl;
25 26
26 class PPB_URLRequestInfo_Impl : public Resource, 27 class PPB_URLRequestInfo_Impl : public ::ppapi::Resource,
27 public ::ppapi::thunk::PPB_URLRequestInfo_API { 28 public ::ppapi::thunk::PPB_URLRequestInfo_API {
28 public: 29 public:
29 explicit PPB_URLRequestInfo_Impl(PluginInstance* instance); 30 explicit PPB_URLRequestInfo_Impl(PP_Instance instance);
30 virtual ~PPB_URLRequestInfo_Impl(); 31 virtual ~PPB_URLRequestInfo_Impl();
31 32
32 // Resource overrides. 33 // Resource overrides.
33 virtual PPB_URLRequestInfo_API* AsPPB_URLRequestInfo_API() OVERRIDE; 34 virtual PPB_URLRequestInfo_API* AsPPB_URLRequestInfo_API() OVERRIDE;
34 35
35 // PPB_URLRequestInfo implementation. 36 // PPB_URLRequestInfo implementation.
36 virtual PP_Bool SetProperty(PP_URLRequestProperty property, 37 virtual PP_Bool SetProperty(PP_URLRequestProperty property,
37 PP_Var var) OVERRIDE; 38 PP_Var var) OVERRIDE;
38 virtual PP_Bool AppendDataToBody(const void* data, uint32_t len) OVERRIDE; 39 virtual PP_Bool AppendDataToBody(const void* data, uint32_t len) OVERRIDE;
39 virtual PP_Bool AppendFileToBody( 40 virtual PP_Bool AppendFileToBody(
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int32_t prefetch_buffer_upper_threshold_; 105 int32_t prefetch_buffer_upper_threshold_;
105 int32_t prefetch_buffer_lower_threshold_; 106 int32_t prefetch_buffer_lower_threshold_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl); 108 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Impl);
108 }; 109 };
109 110
110 } // namespace ppapi 111 } // namespace ppapi
111 } // namespace webkit 112 } // namespace webkit
112 113
113 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_ 114 #endif // WEBKIT_PLUGINS_PPAPI_PPB_URL_REQUEST_INFO_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_url_loader_impl.cc ('k') | webkit/plugins/ppapi/ppb_url_request_info_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698