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

Side by Side Diff: mojo/apps/js/content_handler_impl.h

Issue 668663006: Standardize usage of virtual/override/final in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « mojo/apps/js/bindings/gl/context.h ('k') | mojo/apps/js/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_ 5 #ifndef MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_
6 #define MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_ 6 #define MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_
7 7
8 #include "mojo/services/public/interfaces/content_handler/content_handler.mojom. h" 8 #include "mojo/services/public/interfaces/content_handler/content_handler.mojom. h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace apps { 11 namespace apps {
12 12
13 class ApplicationDelegateImpl; 13 class ApplicationDelegateImpl;
14 14
15 // Starts a new JSApp for each OnConnect call(). 15 // Starts a new JSApp for each OnConnect call().
16 class ContentHandlerImpl : public InterfaceImpl<ContentHandler> { 16 class ContentHandlerImpl : public InterfaceImpl<ContentHandler> {
17 public: 17 public:
18 ContentHandlerImpl(ApplicationDelegateImpl* app_delegate_impl); 18 ContentHandlerImpl(ApplicationDelegateImpl* app_delegate_impl);
19 19
20 private: 20 private:
21 virtual ~ContentHandlerImpl(); 21 ~ContentHandlerImpl() override;
22 virtual void OnConnect( 22 void OnConnect(const mojo::String& url,
23 const mojo::String& url, 23 URLResponsePtr content,
24 URLResponsePtr content, 24 InterfaceRequest<ServiceProvider> service_provider) override;
25 InterfaceRequest<ServiceProvider> service_provider) override;
26 25
27 ApplicationDelegateImpl* app_delegate_impl_; 26 ApplicationDelegateImpl* app_delegate_impl_;
28 }; 27 };
29 28
30 } // namespace apps 29 } // namespace apps
31 } // namespace mojo 30 } // namespace mojo
32 31
33 #endif // MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_ 32 #endif // MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/apps/js/bindings/gl/context.h ('k') | mojo/apps/js/content_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698