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

Unified Diff: ppapi/cpp/dev/url_response_info_dev.h

Issue 4747001: Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directory... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/cpp/dev/url_request_info_dev.cc ('k') | ppapi/cpp/dev/url_response_info_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/url_response_info_dev.h
===================================================================
--- ppapi/cpp/dev/url_response_info_dev.h (revision 65624)
+++ ppapi/cpp/dev/url_response_info_dev.h (working copy)
@@ -1,58 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PPAPI_CPP_DEV_URL_RESPONSE_INFO_DEV_H_
-#define PPAPI_CPP_DEV_URL_RESPONSE_INFO_DEV_H_
-
-#include "ppapi/c/dev/ppb_url_response_info_dev.h"
-#include "ppapi/cpp/resource.h"
-#include "ppapi/cpp/var.h"
-
-namespace pp {
-
-class FileRef_Dev;
-
-class URLResponseInfo_Dev : public Resource {
- public:
- // Creates an is_null() URLResponseInfo object.
- URLResponseInfo_Dev() {}
-
- // This constructor is used when we've gotten a PP_Resource as a return value
- // that has already been addref'ed for us.
- struct PassRef {};
- URLResponseInfo_Dev(PassRef, PP_Resource resource);
-
- URLResponseInfo_Dev(const URLResponseInfo_Dev& other);
-
- URLResponseInfo_Dev& operator=(const URLResponseInfo_Dev& other);
- void swap(URLResponseInfo_Dev& other);
-
- // PPB_URLResponseInfo methods:
- Var GetProperty(PP_URLResponseProperty_Dev property) const;
- FileRef_Dev GetBody() const;
-
- // Convenient helpers for getting properties:
- Var GetURL() const {
- return GetProperty(PP_URLRESPONSEPROPERTY_URL);
- }
- Var GetRedirectURL() const {
- return GetProperty(PP_URLRESPONSEPROPERTY_REDIRECTURL);
- }
- Var GetRedirectMethod() const {
- return GetProperty(PP_URLRESPONSEPROPERTY_REDIRECTMETHOD);
- }
- int32_t GetStatusCode() const {
- return GetProperty(PP_URLRESPONSEPROPERTY_STATUSCODE).AsInt();
- }
- Var GetStatusLine() const {
- return GetProperty(PP_URLRESPONSEPROPERTY_STATUSLINE);
- }
- Var GetHeaders() const {
- return GetProperty(PP_URLRESPONSEPROPERTY_HEADERS);
- }
-};
-
-} // namespace pp
-
-#endif // PPAPI_CPP_DEV_URL_RESPONSE_INFO_DEV_H_
« no previous file with comments | « ppapi/cpp/dev/url_request_info_dev.cc ('k') | ppapi/cpp/dev/url_response_info_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698