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

Unified Diff: components/html_viewer/html_document_application_delegate.h

Issue 1218323002: Hook up test runner to new layout_test_html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 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 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 86fcb427207107642be3fae01f8868aea6614f75..83f25a853853c7a5da8659b8cbb79e1b8d100e81 100644
--- a/components/html_viewer/html_document_application_delegate.h
+++ b/components/html_viewer/html_document_application_delegate.h
@@ -7,8 +7,10 @@
#include <set>
+#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "components/html_viewer/html_document.h"
#include "mojo/application/public/cpp/application_delegate.h"
#include "mojo/application/public/cpp/application_impl.h"
#include "mojo/services/network/public/interfaces/network_service.mojom.h"
@@ -18,7 +20,6 @@
namespace html_viewer {
class GlobalState;
-class HTMLDocument;
class HTMLDocumentOOPIF;
// ApplicationDelegate created by the content handler for a specific url.
@@ -30,6 +31,12 @@ class HTMLDocumentApplicationDelegate : public mojo::ApplicationDelegate {
GlobalState* global_state,
scoped_ptr<mojo::AppRefCount> parent_app_refcount);
+ typedef base::Callback<HTMLDocument*(HTMLDocument::CreateParams*)>
+ HTMLDocumentCreationCallback;
+
+ void SetHTMLDocumentCreationCallback(
+ const HTMLDocumentCreationCallback& callback);
+
private:
class ServiceConnectorQueue;
@@ -70,6 +77,8 @@ class HTMLDocumentApplicationDelegate : public mojo::ApplicationDelegate {
// HTMLDocument is deleted.
std::set<HTMLDocumentOOPIF*> documents2_;
+ HTMLDocumentCreationCallback html_document_creation_callback_;
+
DISALLOW_COPY_AND_ASSIGN(HTMLDocumentApplicationDelegate);
};
« no previous file with comments | « components/html_viewer/html_document.h ('k') | components/html_viewer/html_document_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698