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

Unified Diff: components/html_viewer/html_document_application_delegate.h

Issue 1431573002: Fix hangs in Mandoline page cycler on Linux with --enable-multiprocess. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 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
Index: components/html_viewer/html_document_application_delegate.h
diff --git a/components/html_viewer/html_document_application_delegate.h b/components/html_viewer/html_document_application_delegate.h
index 6b2d3796ab1d29694ce49ca9bd8e5e38933b17c5..8347fb34f29d379a28717d030791153d1c1627eb 100644
--- a/components/html_viewer/html_document_application_delegate.h
+++ b/components/html_viewer/html_document_application_delegate.h
@@ -29,7 +29,8 @@ class HTMLDocumentApplicationDelegate : public mojo::ApplicationDelegate,
mojo::InterfaceRequest<mojo::Application> request,
mojo::URLResponsePtr response,
GlobalState* global_state,
- scoped_ptr<mojo::AppRefCount> parent_app_refcount);
+ scoped_ptr<mojo::AppRefCount> parent_app_refcount,
+ const mojo::Callback<void()>& destruct_callback);
void set_html_factory(HTMLFactory* factory) { html_factory_ = factory; }
HTMLFactory* html_factory() { return html_factory_; }
@@ -76,6 +77,8 @@ class HTMLDocumentApplicationDelegate : public mojo::ApplicationDelegate,
HTMLFactory* html_factory_;
+ mojo::Callback<void()> destruct_callback_;
+
base::WeakPtrFactory<HTMLDocumentApplicationDelegate> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(HTMLDocumentApplicationDelegate);
« no previous file with comments | « components/html_viewer/content_handler_impl.cc ('k') | components/html_viewer/html_document_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698