summaryrefslogtreecommitdiffstats
path: root/ppapi/example
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-10 21:43:01 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-10 21:43:01 +0000
commit5a3f62856d89817d4117de189e855a6dad16c2ee (patch)
treea7df5acea5b54ea8ca795b0ba5a1dc90316d450e /ppapi/example
parent7631cf8806adf505db4fed53210e27d2d1dd2cd0 (diff)
downloadchromium_src-5a3f62856d89817d4117de189e855a6dad16c2ee.zip
chromium_src-5a3f62856d89817d4117de189e855a6dad16c2ee.tar.gz
chromium_src-5a3f62856d89817d4117de189e855a6dad16c2ee.tar.bz2
Move URLLoader, URLRequestInfo, and URLResponseInfo out of the dev directory
and rename accordingly. Rename URLResponseInfo.GetBody to GetBodyAsFileRef. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/4747001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/example')
-rw-r--r--ppapi/example/example.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc
index bb3825f..ab5a248 100644
--- a/ppapi/example/example.cc
+++ b/ppapi/example/example.cc
@@ -17,13 +17,13 @@
#include "ppapi/c/pp_rect.h"
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/dev/scriptable_object_deprecated.h"
-#include "ppapi/cpp/dev/url_loader_dev.h"
-#include "ppapi/cpp/dev/url_request_info_dev.h"
#include "ppapi/cpp/graphics_2d.h"
#include "ppapi/cpp/image_data.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/module.h"
#include "ppapi/cpp/rect.h"
+#include "ppapi/cpp/url_loader.h"
+#include "ppapi/cpp/url_request_info.h"
#include "ppapi/cpp/var.h"
static const int kStepsPerCircle = 800;
@@ -88,11 +88,11 @@ class MyFetcher {
void Start(const pp::Instance& instance,
const pp::Var& url,
MyFetcherClient* client) {
- pp::URLRequestInfo_Dev request;
+ pp::URLRequestInfo request;
request.SetURL(url);
request.SetMethod("GET");
- loader_ = pp::URLLoader_Dev(instance);
+ loader_ = pp::URLLoader(instance);
client_ = client;
pp::CompletionCallback callback =
@@ -102,7 +102,7 @@ class MyFetcher {
callback.Run(rv);
}
- void StartWithOpenedLoader(const pp::URLLoader_Dev& loader,
+ void StartWithOpenedLoader(const pp::URLLoader& loader,
MyFetcherClient* client) {
loader_ = loader;
client_ = client;
@@ -142,7 +142,7 @@ class MyFetcher {
}
pp::CompletionCallbackFactory<MyFetcher> callback_factory_;
- pp::URLLoader_Dev loader_;
+ pp::URLLoader loader_;
MyFetcherClient* client_;
char buf_[4096];
std::string data_;
@@ -170,7 +170,7 @@ class MyInstance : public pp::Instance, public MyFetcherClient {
return true;
}
- virtual bool HandleDocumentLoad(const pp::URLLoader_Dev& loader) {
+ virtual bool HandleDocumentLoad(const pp::URLLoader& loader) {
fetcher_ = new MyFetcher();
fetcher_->StartWithOpenedLoader(loader, this);
return true;