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

Side by Side Diff: components/html_viewer/html_viewer.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
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_HTML_VIEWER_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_HTML_VIEWER_H_
6 #define COMPONENTS_HTML_VIEWER_HTML_VIEWER_H_ 6 #define COMPONENTS_HTML_VIEWER_HTML_VIEWER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/application/public/cpp/application_delegate.h" 10 #include "mojo/application/public/cpp/application_delegate.h"
11 #include "mojo/application/public/cpp/interface_factory_impl.h" 11 #include "mojo/application/public/cpp/interface_factory_impl.h"
12 #include "mojo/application/public/interfaces/content_handler.mojom.h" 12 #include "mojo/application/public/interfaces/content_handler.mojom.h"
13 13
14 namespace html_viewer { 14 namespace html_viewer {
15 15
16 class GlobalState; 16 class GlobalState;
17 17
18 class HTMLViewer : public mojo::ApplicationDelegate, 18 class HTMLViewer : public mojo::ApplicationDelegate,
19 public mojo::InterfaceFactory<mojo::ContentHandler> { 19 public mojo::InterfaceFactory<mojo::ContentHandler> {
20 public: 20 public:
21 HTMLViewer(); 21 HTMLViewer();
22 ~HTMLViewer() override; 22 ~HTMLViewer() override;
23 23
24 protected:
25 GlobalState* global_state() const { return global_state_.get(); }
26 mojo::ApplicationImpl* app() const { return app_; }
27
28 // Overridden from ApplicationDelegate:
29 void Initialize(mojo::ApplicationImpl* app) override;
30
24 private: 31 private:
25 // Overridden from ApplicationDelegate: 32 // Overridden from ApplicationDelegate:
26 void Initialize(mojo::ApplicationImpl* app) override;
27 bool ConfigureIncomingConnection( 33 bool ConfigureIncomingConnection(
28 mojo::ApplicationConnection* connection) override; 34 mojo::ApplicationConnection* connection) override;
29 35
30 // Overridden from InterfaceFactory<ContentHandler> 36 // Overridden from InterfaceFactory<ContentHandler>
31 void Create(mojo::ApplicationConnection* connection, 37 void Create(mojo::ApplicationConnection* connection,
32 mojo::InterfaceRequest<mojo::ContentHandler> request) override; 38 mojo::InterfaceRequest<mojo::ContentHandler> request) override;
33 39
34 scoped_ptr<GlobalState> global_state_; 40 scoped_ptr<GlobalState> global_state_;
35 mojo::ApplicationImpl* app_; 41 mojo::ApplicationImpl* app_;
36 42
37 DISALLOW_COPY_AND_ASSIGN(HTMLViewer); 43 DISALLOW_COPY_AND_ASSIGN(HTMLViewer);
38 }; 44 };
39 45
40 } // namespace html_viewer 46 } // namespace html_viewer
41 47
42 #endif // COMPONENTS_HTML_VIEWER_HTML_VIEWER_H_ 48 #endif // COMPONENTS_HTML_VIEWER_HTML_VIEWER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698