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

Unified Diff: ppapi/example/example.cc

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/url_response_info.cc ('k') | ppapi/ppapi.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/example/example.cc
===================================================================
--- ppapi/example/example.cc (revision 65624)
+++ ppapi/example/example.cc (working copy)
@@ -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 @@
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 @@
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 @@
}
pp::CompletionCallbackFactory<MyFetcher> callback_factory_;
- pp::URLLoader_Dev loader_;
+ pp::URLLoader loader_;
MyFetcherClient* client_;
char buf_[4096];
std::string data_;
@@ -170,7 +170,7 @@
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;
« no previous file with comments | « ppapi/cpp/url_response_info.cc ('k') | ppapi/ppapi.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698