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

Side by Side Diff: components/html_viewer/content_handler_impl.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 unified diff | Download patch
« no previous file with comments | « components/html_viewer/DEPS ('k') | components/html_viewer/html_document.h » ('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/application/public/cpp/application_impl.h" 9 #include "mojo/application/public/cpp/application_impl.h"
10 #include "mojo/application/public/interfaces/content_handler.mojom.h" 10 #include "mojo/application/public/interfaces/content_handler.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
12 12
13 namespace html_viewer { 13 namespace html_viewer {
14 14
15 class GlobalState; 15 class GlobalState;
16 16
17 class ContentHandlerImpl : public mojo::ContentHandler { 17 class ContentHandlerImpl : public mojo::ContentHandler {
18 public: 18 public:
19 ContentHandlerImpl(GlobalState* global_state, 19 ContentHandlerImpl(GlobalState* global_state,
20 mojo::ApplicationImpl* app, 20 mojo::ApplicationImpl* app,
21 mojo::InterfaceRequest<ContentHandler> request); 21 mojo::InterfaceRequest<ContentHandler> request);
22 ~ContentHandlerImpl() override; 22 ~ContentHandlerImpl() override;
23 23
24 protected:
25 GlobalState* global_state() const { return global_state_; }
26 mojo::ApplicationImpl* app() const { return app_; }
27
24 private: 28 private:
25 // Overridden from ContentHandler: 29 // Overridden from ContentHandler:
26 void StartApplication(mojo::InterfaceRequest<mojo::Application> request, 30 void StartApplication(mojo::InterfaceRequest<mojo::Application> request,
27 mojo::URLResponsePtr response) override; 31 mojo::URLResponsePtr response) override;
28 32
29 GlobalState* global_state_; 33 GlobalState* global_state_;
30 mojo::ApplicationImpl* app_; 34 mojo::ApplicationImpl* app_;
31 mojo::StrongBinding<mojo::ContentHandler> binding_; 35 mojo::StrongBinding<mojo::ContentHandler> binding_;
32 36
33 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl); 37 DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl);
34 }; 38 };
35 39
36 } // namespace html_viewer 40 } // namespace html_viewer
37 41
38 #endif // COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_ 42 #endif // COMPONENTS_HTML_VIEWER_CONTENT_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « components/html_viewer/DEPS ('k') | components/html_viewer/html_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698