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

Side by Side Diff: ppapi/host/instance_message_filter.cc

Issue 10803050: Hook up the PPB_Flash_Print interface to new host system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ppapi/host/instance_message_filter.h"
6
7 #include "ppapi/host/ppapi_host.h"
8
9 namespace ppapi {
10 namespace host {
11
12 InstanceMessageFilter::InstanceMessageFilter(PpapiHost* host)
13 : host_(host) {
14 host_->AddInstanceMessageFilter(this);
15 }
16
17 InstanceMessageFilter::~InstanceMessageFilter() {
18 if (host_)
19 host_->RemoveInstanceMessageFilter(this);
20 }
21
22 void InstanceMessageFilter::CallPpapiHostDestroyed() {
23 host_->RemoveInstanceMessageFilter(this);
24 PpapiHost* host = host_;
25 host_ = NULL;
26 PpapiHostDestroyed(host);
dmichael (off chromium) 2012/07/25 16:57:27 If the host is in the process of being destroyed,
brettw 2012/07/26 16:18:12 This seems reasonable. I'm not actually sure how t
27 }
28
29 } // namespace host
30 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698