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

Unified Diff: components/pdf_viewer/pdf_viewer.cc

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
Patch Set: . Created 4 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 | « components/mus/android_loader.cc ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/pdf_viewer/pdf_viewer.cc
diff --git a/components/pdf_viewer/pdf_viewer.cc b/components/pdf_viewer/pdf_viewer.cc
index 1fa29848851d06eb29eeb681fd9344b20c83c805..ba162121b7007105c1f91eda96b51d46ac5c3077 100644
--- a/components/pdf_viewer/pdf_viewer.cc
+++ b/components/pdf_viewer/pdf_viewer.cc
@@ -27,10 +27,10 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/services/tracing/public/cpp/tracing_impl.h"
-#include "mojo/shell/public/cpp/application_impl.h"
#include "mojo/shell/public/cpp/application_runner.h"
#include "mojo/shell/public/cpp/interface_factory_impl.h"
#include "mojo/shell/public/cpp/shell_client.h"
+#include "mojo/shell/public/cpp/shell_connection.h"
#include "mojo/shell/public/interfaces/content_handler.mojom.h"
#include "mojo/shell/public/interfaces/shell.mojom.h"
#include "third_party/pdfium/public/fpdf_ext.h"
@@ -242,7 +242,7 @@ class PDFViewerApplicationDelegate
public mojo::InterfaceFactory<mus::mojom::WindowTreeClient> {
public:
PDFViewerApplicationDelegate(
- mojo::ApplicationRequest request,
+ mojo::ShellClientRequest request,
mojo::URLResponsePtr response,
const mojo::Callback<void()>& destruct_callback)
: app_(this,
@@ -305,7 +305,7 @@ class PDFViewerApplicationDelegate
mus::WindowTreeConnection::CreateType::DONT_WAIT_FOR_EMBED);
}
- mojo::ApplicationImpl app_;
+ mojo::ShellConnection app_;
std::string data_;
std::vector<PDFView*> pdf_views_;
FPDF_DOCUMENT doc_;
@@ -325,7 +325,7 @@ class ContentHandlerImpl : public mojo::shell::mojom::ContentHandler {
private:
// mojo::shell::mojom::ContentHandler:
void StartApplication(
- mojo::ApplicationRequest request,
+ mojo::ShellClientRequest request,
mojo::URLResponsePtr response,
const mojo::Callback<void()>& destruct_callback) override {
new PDFViewerApplicationDelegate(std::move(request), std::move(response),
@@ -374,7 +374,7 @@ class PDFViewer
} // namespace
} // namespace pdf_viewer
-MojoResult MojoMain(MojoHandle application_request) {
+MojoResult MojoMain(MojoHandle request) {
mojo::ApplicationRunner runner(new pdf_viewer::PDFViewer());
- return runner.Run(application_request);
+ return runner.Run(request);
}
« no previous file with comments | « components/mus/android_loader.cc ('k') | content/browser/mojo/mojo_shell_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698