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

Side by Side Diff: ppapi/cpp/url_response_info.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 9 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
« no previous file with comments | « ppapi/cpp/url_request_info.cc ('k') | ppapi/cpp/url_response_info.cc » ('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) 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_CPP_URL_RESPONSE_INFO_H_ 5 #ifndef PPAPI_CPP_URL_RESPONSE_INFO_H_
6 #define PPAPI_CPP_URL_RESPONSE_INFO_H_ 6 #define PPAPI_CPP_URL_RESPONSE_INFO_H_
7 7
8 #include "ppapi/c/ppb_url_response_info.h" 8 #include "ppapi/c/ppb_url_response_info.h"
9 #include "ppapi/cpp/resource.h" 9 #include "ppapi/cpp/resource.h"
10 #include "ppapi/cpp/var.h" 10 #include "ppapi/cpp/var.h"
11 11
12 /// @file 12 /// @file
13 /// This file defines the API for examining URL responses. 13 /// This file defines the API for examining URL responses.
14 namespace pp { 14 namespace pp {
15 15
16 class FileRef; 16 class FileRef;
17 17
18 /// URLResponseInfo provides an API for examaning URL responses. 18 /// URLResponseInfo provides an API for examaning URL responses.
19 class URLResponseInfo : public Resource { 19 class URLResponseInfo : public Resource {
20 public: 20 public:
21 /// Default constructor. This constructor creates an <code>is_null</code> 21 /// Default constructor. This constructor creates an <code>is_null</code>
22 /// resource. 22 /// resource.
23 URLResponseInfo() {} 23 URLResponseInfo() {}
24 24
25 /// A special structure used by the constructor that does not increment the
26 /// reference count of the underlying resource.
27 struct PassRef {};
28
29 /// A constructor used when you have received a <code>PP_Resource</code> as a 25 /// A constructor used when you have received a <code>PP_Resource</code> as a
30 /// return value that has already been reference counted. 26 /// return value that has already been reference counted.
31 /// 27 ///
32 /// @param[in] resource A <code>PP_Resource</code> corresponding to a 28 /// @param[in] resource A <code>PP_Resource</code> corresponding to a
33 /// resource. 29 /// resource.
34 URLResponseInfo(PassRef, PP_Resource resource); 30 URLResponseInfo(PassRef, PP_Resource resource);
35 31
36 /// The copy constructor for <code>URLResponseInfo</code>. 32 /// The copy constructor for <code>URLResponseInfo</code>.
37 URLResponseInfo(const URLResponseInfo& other); 33 URLResponseInfo(const URLResponseInfo& other);
38 34
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 /// value if successful, <code>is_undefined Var</code> if an input parameter 111 /// value if successful, <code>is_undefined Var</code> if an input parameter
116 /// is invalid. 112 /// is invalid.
117 Var GetHeaders() const { 113 Var GetHeaders() const {
118 return GetProperty(PP_URLRESPONSEPROPERTY_HEADERS); 114 return GetProperty(PP_URLRESPONSEPROPERTY_HEADERS);
119 } 115 }
120 }; 116 };
121 117
122 } // namespace pp 118 } // namespace pp
123 119
124 #endif // PPAPI_CPP_URL_RESPONSE_INFO_H_ 120 #endif // PPAPI_CPP_URL_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/url_request_info.cc ('k') | ppapi/cpp/url_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698