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

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

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. Created 5 years, 8 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
« no previous file with comments | « ppapi/proxy/url_request_info_resource.h ('k') | ppapi/proxy/video_capture_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10 matching lines...) Expand all
21 public NON_EXPORTED_BASE(thunk::PPB_URLResponseInfo_API) { 21 public NON_EXPORTED_BASE(thunk::PPB_URLResponseInfo_API) {
22 public: 22 public:
23 // The file_ref_resource should be the body_as_file_ref host resource in the 23 // The file_ref_resource should be the body_as_file_ref host resource in the
24 // |data| converted to a resource valid in the current process (if we're 24 // |data| converted to a resource valid in the current process (if we're
25 // downloading to a file; it will be 0 if we're not). A reference 25 // downloading to a file; it will be 0 if we're not). A reference
26 // is passed from the caller and is taken over by this object. 26 // is passed from the caller and is taken over by this object.
27 URLResponseInfoResource(Connection connection, 27 URLResponseInfoResource(Connection connection,
28 PP_Instance instance, 28 PP_Instance instance,
29 const URLResponseInfoData& data, 29 const URLResponseInfoData& data,
30 PP_Resource file_ref_resource); 30 PP_Resource file_ref_resource);
31 virtual ~URLResponseInfoResource(); 31 ~URLResponseInfoResource() override;
32 32
33 // Resource override. 33 // Resource override.
34 virtual PPB_URLResponseInfo_API* AsPPB_URLResponseInfo_API() override; 34 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 PP_Var GetProperty(PP_URLResponseProperty property) override;
38 virtual PP_Resource GetBodyAsFileRef() override; 38 PP_Resource GetBodyAsFileRef() override;
39 39
40 const URLResponseInfoData& data() const { return data_; } 40 const URLResponseInfoData& data() const { return data_; }
41 41
42 private: 42 private:
43 URLResponseInfoData data_; 43 URLResponseInfoData data_;
44 44
45 // Non-zero when the load is being streamed to a file. 45 // Non-zero when the load is being streamed to a file.
46 ScopedPPResource body_as_file_ref_; 46 ScopedPPResource body_as_file_ref_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(URLResponseInfoResource); 48 DISALLOW_COPY_AND_ASSIGN(URLResponseInfoResource);
49 }; 49 };
50 50
51 } // namespace proxy 51 } // namespace proxy
52 } // namespace ppapi 52 } // namespace ppapi
53 53
54 #endif // PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_ 54 #endif // PPAPI_PROXY_URL_RESPONSE_INFO_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/url_request_info_resource.h ('k') | ppapi/proxy/video_capture_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698