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

Side by Side Diff: components/html_viewer/content_handler_impl.h

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 unified diff | Download patch
« no previous file with comments | « components/filesystem/main.cc ('k') | components/html_viewer/content_handler_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_ 6 #define COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h" 9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "mojo/shell/public/cpp/shell.h" 10 #include "mojo/shell/public/cpp/shell.h"
(...skipping 11 matching lines...) Expand all
22 mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request); 22 mojo::InterfaceRequest<mojo::shell::mojom::ContentHandler> request);
23 ~ContentHandlerImpl() override; 23 ~ContentHandlerImpl() override;
24 24
25 protected: 25 protected:
26 GlobalState* global_state() const { return global_state_; } 26 GlobalState* global_state() const { return global_state_; }
27 mojo::Shell* shell() const { return shell_; } 27 mojo::Shell* shell() const { return shell_; }
28 28
29 private: 29 private:
30 // Overridden from shell::mojom::ContentHandler: 30 // Overridden from shell::mojom::ContentHandler:
31 void StartApplication( 31 void StartApplication(
32 mojo::ApplicationRequest request, 32 mojo::ShellClientRequest request,
33 mojo::URLResponsePtr response, 33 mojo::URLResponsePtr response,
34 const mojo::Callback<void()>& destruct_callback) override; 34 const mojo::Callback<void()>& destruct_callback) override;
35 35
36 GlobalState* global_state_; 36 GlobalState* global_state_;
37 mojo::Shell* shell_; 37 mojo::Shell* shell_;
38 mojo::StrongBinding<mojo::shell::mojom::ContentHandler> binding_; 38 mojo::StrongBinding<mojo::shell::mojom::ContentHandler> binding_;
39 scoped_ptr<mojo::AppRefCount> app_refcount_; 39 scoped_ptr<mojo::AppRefCount> app_refcount_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl); 41 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl);
42 }; 42 };
43 43
44 } // namespace html_viewer 44 } // namespace html_viewer
45 45
46 #endif // COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_ 46 #endif // COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « components/filesystem/main.cc ('k') | components/html_viewer/content_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698