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

Unified Diff: tests/fake_browser_ppapi/fake_url_response_info.h

Issue 7292002: Remove plugin connection to PPAPI scriptable objects (var deprecated). Also (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: tests/fake_browser_ppapi/fake_url_response_info.h
===================================================================
--- tests/fake_browser_ppapi/fake_url_response_info.h (revision 6005)
+++ tests/fake_browser_ppapi/fake_url_response_info.h (working copy)
@@ -1,55 +0,0 @@
-/*
- * Copyright 2010 The Native Client 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 NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_URL_RESPONSE_INFO_H_
-#define NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_URL_RESPONSE_INFO_H_
-
-#include <string>
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/tests/fake_browser_ppapi/fake_resource.h"
-
-#include "ppapi/c/pp_module.h"
-#include "ppapi/c/ppb_url_response_info.h"
-
-namespace fake_browser_ppapi {
-
-// Implements the PPB_URLResponse_Info interface.
-class URLResponseInfo : public Resource {
- public:
- explicit URLResponseInfo(PP_Module module_id)
- : module_id_(module_id), body_as_file_ref_(NULL) {}
-
- URLResponseInfo* AsURLResponseInfo() { return this; }
-
- // Setters.
- void set_url(const std::string& url) { url_ = url; }
- void set_status_code(int32_t status_code) { status_code_ = status_code; }
- void set_body_as_file_ref(FileRef* file_ref) {
- body_as_file_ref_ = file_ref;
- }
-
- // Getters.
- PP_Module module_id() const { return module_id_; }
- const std::string& url() const { return url_; }
- int32_t status_code() { return status_code_; }
- FileRef* body_as_file_ref() const { return body_as_file_ref_; }
-
- // Return an interface pointer usable by PPAPI.
- static const PPB_URLResponseInfo* GetInterface();
-
- private:
- PP_Module module_id_;
- std::string url_;
- int32_t status_code_; // Http status code.
- FileRef* body_as_file_ref_;
-
- NACL_DISALLOW_COPY_AND_ASSIGN(URLResponseInfo);
-};
-
-} // namespace fake_browser_ppapi
-
-#endif // NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_URL_RESPONSE_INFO_H_
« no previous file with comments | « tests/fake_browser_ppapi/fake_url_request_info.cc ('k') | tests/fake_browser_ppapi/fake_url_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698