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

Unified Diff: ppapi/example/example.cc

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, 10 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
« no previous file with comments | « ppapi/cpp/websocket.cc ('k') | ppapi/examples/video_capture/video_capture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/example/example.cc
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc
index 8319d4981da6c57e85d9a00378e34c89d9bc036e..17ac0370886d7963d4eedbd0f0d84acdcb6a3610 100644
--- a/ppapi/example/example.cc
+++ b/ppapi/example/example.cc
@@ -98,14 +98,14 @@ class MyFetcher {
callback_factory_.Initialize(this);
}
- void Start(const pp::InstancePrivate& instance,
+ void Start(pp::Instance* instance,
const pp::Var& url,
MyFetcherClient* client) {
pp::URLRequestInfo request;
request.SetURL(url);
request.SetMethod("GET");
- loader_ = pp::URLLoader(instance);
+ loader_ = pp::URLLoader(pp::InstanceHandle(instance));
client_ = client;
pp::CompletionCallback callback =
@@ -415,7 +415,7 @@ int gettimeofday(struct timeval *tv, struct timezone*) {
if (!fetcher_) {
fetcher_ = new MyFetcher();
- fetcher_->Start(*this, href, this);
+ fetcher_->Start(this, href, this);
}
}
« no previous file with comments | « ppapi/cpp/websocket.cc ('k') | ppapi/examples/video_capture/video_capture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698